mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-11 09:14:39 +02:00
Merge pull request #459 from chappers/julia
[julia/en] Fixed Spelling Mistake
This commit is contained in:
@@ -83,7 +83,7 @@ false
|
|||||||
# A string can be indexed like an array of characters
|
# A string can be indexed like an array of characters
|
||||||
"This is a string"[1] #=> 'T' # Julia indexes from 1
|
"This is a string"[1] #=> 'T' # Julia indexes from 1
|
||||||
# However, this is will not work well for UTF8 strings,
|
# However, this is will not work well for UTF8 strings,
|
||||||
# so iterating over strings is reccommended (map, for loops, etc).
|
# so iterating over strings is recommended (map, for loops, etc).
|
||||||
|
|
||||||
# $ can be used for string interpolation:
|
# $ can be used for string interpolation:
|
||||||
"2 + 2 = $(2 + 2)" #=> "2 + 2 = 4"
|
"2 + 2 = $(2 + 2)" #=> "2 + 2 = 4"
|
||||||
|
Reference in New Issue
Block a user