Skip to content

Commit

Permalink
Fix invalidations for FileIO (#55593)
Browse files Browse the repository at this point in the history
Fixes JuliaIO/FileIO.jl#396

(cherry picked from commit 68feddc)
  • Loading branch information
nhz2 authored and KristofferC committed Sep 11, 2024
1 parent 26440bd commit b702d76
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 b702d76

Please sign in to comment.