aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2020-12-06 00:49:48 +0000
committerGitHub <noreply@github.com>2020-12-06 00:49:48 +0000
commitf0683c910231513db9adab83f7c2fca9dd8d2613 (patch)
tree2539634b5b71caf5148d8927c9298ba20bad5246 /examples
parent54fbdabc380905a925ab5e922749fa2b1ccb2621 (diff)
parentca4657fd31b9efc7ab52f7e1b6f4145d5ed28fb7 (diff)
Merge branch 'master' into parser-experiments
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin
index 231ed6b91..d4f00475a 100644
--- a/examples/demo/demo.odin
+++ b/examples/demo/demo.odin
@@ -75,7 +75,7 @@ the_basics :: proc() {
// Binary literals are prefixed with 0b, octal literals with 0o, and hexadecimal
// literals 0x. A leading zero does not produce an octal constant (unlike C).
- // In Odin, if a number constant is possible to be represented by a type without
+ // In Odin, if a numeric constant can be represented by a type without
// precision loss, it will automatically convert to that type.
x: int = 1.0; // A float literal but it can be represented by an integer without precision loss
@@ -85,7 +85,7 @@ the_basics :: proc() {
y = 1; // `1` is an untyped integer literal which can implicitly convert to `int`
z: f64; // `z` is typed of type `f64` (64-bit floating point number)
- z = 1; // `1` is an untyped integer literals which can be implicity conver to `f64`
+ z = 1; // `1` is an untyped integer literal which can be implicitly converted to `f64`
// No need for any suffixes or decimal places like in other languages
// CONSTANTS JUST WORK!!!
@@ -150,7 +150,7 @@ control_flow :: proc() {
i += 1;
}
- // If the condition is omitted, this produces an infinite loop:
+ // If the condition is omitted, an infinite loop is produced:
for {
break;
}