From 31ae77542dbdd18bc43eed9e151421f5c6c416de Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Tue, 6 Feb 2024 17:12:40 +0100 Subject: [PATCH] fix typo in AnnotatedChar constructor (#53204) Found randomly when using JET for something completely different. --- base/strings/annotated.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/strings/annotated.jl b/base/strings/annotated.jl index 4644d89283b18..f84a85eaf62ab 100644 --- a/base/strings/annotated.jl +++ b/base/strings/annotated.jl @@ -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