mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix typos in demo.odin
This commit is contained in:
@@ -99,11 +99,11 @@ the_basics :: proc() {
|
|||||||
a, b := 1, "hello"; // declares `a` and `b` and infers the types from the assignments
|
a, b := 1, "hello"; // declares `a` and `b` and infers the types from the assignments
|
||||||
b, a = "byte", 0;
|
b, a = "byte", 0;
|
||||||
|
|
||||||
// Note: `:=` is two tokens, `:` and `=`. The follow are equivalent
|
// Note: `:=` is two tokens, `:` and `=`. The following are equivalent,
|
||||||
/*
|
/*
|
||||||
i: int = 123;
|
i: int = 123;
|
||||||
i: = 123;
|
i: = 123;
|
||||||
i := 123
|
i := 123;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Constant declarations
|
// Constant declarations
|
||||||
|
|||||||
Reference in New Issue
Block a user