Skip to content

Commit 31ae775

Browse files
authored
fix typo in AnnotatedChar constructor (#53204)
Found randomly when using JET for something completely different.
1 parent da8a441 commit 31ae775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/strings/annotated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ AnnotatedString(s::AnnotatedString, annots::Vector{Tuple{UnitRange{Int}, Pair{Sy
112112
AnnotatedString(s.string, vcat(s.annotations, annots))
113113

114114
AnnotatedChar(c::AnnotatedChar, annots::Vector{Pair{Symbol, Any}}) =
115-
AnnotatedChar(c.char, vcat(s.annotations, annots))
115+
AnnotatedChar(c.char, vcat(c.annotations, annots))
116116

117117
String(s::AnnotatedString{String}) = s.string # To avoid pointless overhead
118118

0 commit comments

Comments
 (0)