mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Change string access example for clarity
'T' was apparently mistaken by someone for True, so this is a minor edit to use a different example to make sure that doesn't happen again.
This commit is contained in:
parent
bf39f18a78
commit
d56323d08e
@ -132,7 +132,7 @@ b == a # => True, a's and b's objects are equal
|
||||
"Hello " "world!" # => "Hello world!"
|
||||
|
||||
# A string can be treated like a list of characters
|
||||
"This is a string"[0] # => 'T'
|
||||
"Hello world!"[0] # => 'H'
|
||||
|
||||
# You can find the length of a string
|
||||
len("This is a string") # => 16
|
||||
|
Loading…
Reference in New Issue
Block a user