From 968aa2f6880f63bd87484f563deb701a279371ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20M=2E=20Monacci?= Date: Tue, 3 Nov 2020 10:51:56 -0300 Subject: [PATCH] Fix some typos Fix some typos --- examples/demo/demo.odin | 6 +++--- 1 file 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; }