Skip to content

Commit

Permalink
Fix invalidations for FileIO (#55593)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Sep 9, 2024
1 parent 1463c99 commit 68feddc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base/strings/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ function _join_preserve_annotations(iterator, args...)
# in nature, we extract an `AnnotatedString`, otherwise we just extract
# a plain `String` from `io`.
if isconcretetype(et) || !isempty(io.annotations)
read(seekstart(io), AnnotatedString{String})
seekstart(io)
read(io, AnnotatedString{String})
else
String(take!(io.io))
end
Expand Down

0 comments on commit 68feddc

Please sign in to comment.