Skip to content

Commit 00ebd0c

Browse files
mmsbrggrElOceanografo
authored andcommitted
Update strings.md (JuliaLang#39086)
* Update strings.md * Update strings.md
1 parent 61cf45e commit 00ebd0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/src/manual/strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ julia> s[1:4]
335335
Because of variable-length encodings, the number of characters in a string (given by [`length(s)`](@ref))
336336
is not always the same as the last index. If you iterate through the indices 1 through [`lastindex(s)`](@ref)
337337
and index into `s`, the sequence of characters returned when errors aren't thrown is the sequence
338-
of characters comprising the string `s`. Thus we have the identity that `length(s) <= lastindex(s)`,
338+
of characters comprising the string `s`. Thus `length(s) <= lastindex(s)`,
339339
since each character in a string must have its own index. The following is an inefficient and
340340
verbose way to iterate through the characters of `s`:
341341

0 commit comments

Comments
 (0)