Skip to content

Commit 9ab57e8

Browse files
doc/strings: use string(a, b) instead of * (#42905)
The * operator for concatenation is introduces below, so it's less confusing if `string(a,b)` is used here. Also update an outdated repl-block to a jldoctest.
1 parent eae29c7 commit 9ab57e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/src/manual/strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,17 +482,17 @@ of the concatenated strings, e.g.:
482482
julia> a, b = "\xe2\x88", "\x80"
483483
("\xe2\x88", "\x80")
484484
485-
julia> c = a*b
485+
julia> c = string(a, b)
486486
"∀"
487487
488488
julia> collect.([a, b, c])
489-
3-element Array{Array{Char,1},1}:
489+
3-element Vector{Vector{Char}}:
490490
['\xe2\x88']
491491
['\x80']
492492
['∀']
493493
494494
julia> length.([a, b, c])
495-
3-element Array{Int64,1}:
495+
3-element Vector{Int64}:
496496
1
497497
1
498498
1

0 commit comments

Comments
 (0)