1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 20:10:49 +02: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:
Kuv
2020-06-04 12:41:35 +05:30
committed by GitHub
parent bf39f18a78
commit d56323d08e

View File

@@ -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