mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
comment syntax fix
This commit is contained in:
parent
9c81beb811
commit
325ecf20a0
@ -42,7 +42,7 @@ doStuff()
|
|||||||
35 / 5 // = 7
|
35 / 5 // = 7
|
||||||
|
|
||||||
// Uneven division works how you'd expect, too.
|
// Uneven division works how you'd expect, too.
|
||||||
5 / 2 # = 2.5
|
5 / 2 // = 2.5
|
||||||
|
|
||||||
// Enforce precedence with parentheses
|
// Enforce precedence with parentheses
|
||||||
(1 + 3) * 2 // = 8
|
(1 + 3) * 2 // = 8
|
||||||
@ -68,10 +68,10 @@ false
|
|||||||
2 != 1 // = true
|
2 != 1 // = true
|
||||||
|
|
||||||
// More comparisons
|
// More comparisons
|
||||||
1 < 10 #=> True
|
1 < 10 // => True
|
||||||
1 > 10 #=> False
|
1 > 10 // => False
|
||||||
2 <= 2 #=> True
|
2 <= 2 // => True
|
||||||
2 >= 2 #=> True
|
2 >= 2 // => True
|
||||||
|
|
||||||
// Strings are concatenated with +
|
// Strings are concatenated with +
|
||||||
"Hello " + "world!" // = "Hello world!"
|
"Hello " + "world!" // = "Hello world!"
|
||||||
|
Loading…
Reference in New Issue
Block a user