aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHéctor M. Monacci <hector.monacci@gmail.com>2020-11-03 10:51:56 -0300
committerGitHub <noreply@github.com>2020-11-03 10:51:56 -0300
commit968aa2f6880f63bd87484f563deb701a279371ae (patch)
tree7e6f1e7a580c7292c8616ac03bd59aa314f9d4e8 /examples
parent0784b0ac7f655a307e1b95dbbdb62da675639f34 (diff)
Fix some typos
Fix some typos
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;
}