Skip to content

Commit b702d76

Browse files
nhz2KristofferC
authored and
KristofferC
committed
Fix invalidations for FileIO (#55593)
Fixes JuliaIO/FileIO.jl#396 (cherry picked from commit 68feddc)
1 parent 26440bd commit b702d76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/strings/io.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ function _join_preserve_annotations(iterator, args...)
365365
# in nature, we extract an `AnnotatedString`, otherwise we just extract
366366
# a plain `String` from `io`.
367367
if isconcretetype(et) || !isempty(io.annotations)
368-
read(seekstart(io), AnnotatedString{String})
368+
seekstart(io)
369+
read(io, AnnotatedString{String})
369370
else
370371
String(take!(io.io))
371372
end

0 commit comments

Comments
 (0)