Skip to content

Commit

Permalink
fix typo in AnnotatedChar constructor (#53204)
Browse files Browse the repository at this point in the history
Found randomly when using JET for something completely different.
  • Loading branch information
KristofferC committed Feb 6, 2024
1 parent da8a441 commit 31ae775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/strings/annotated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ AnnotatedString(s::AnnotatedString, annots::Vector{Tuple{UnitRange{Int}, Pair{Sy
AnnotatedString(s.string, vcat(s.annotations, annots))

AnnotatedChar(c::AnnotatedChar, annots::Vector{Pair{Symbol, Any}}) =
AnnotatedChar(c.char, vcat(s.annotations, annots))
AnnotatedChar(c.char, vcat(c.annotations, annots))

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

Expand Down

0 comments on commit 31ae775

Please sign in to comment.