https://github.com/JuliaLang/julia
Revision c2b441b8c67a619020c33b18097c95fa4b9c4413 authored by TEC on 28 December 2023, 10:00:36 UTC, committed by TEC on 31 January 2024, 17:53:42 UTC
While `String` is the only concrete type for which `read(::IOBuffer,
::Type{<:AbstractString})` is defined, is is entirely conceivable that
some other custom string type could define a similar `read` method.

Since making reading an `AnnotatedString` from an `AnnotatedIOBuffer`
more generic is as easy as replacing the hardcoded `String` with a type
parameter, we may as well do so.
1 parent 311553e
History
Tip revision: c2b441b8c67a619020c33b18097c95fa4b9c4413 authored by TEC on 28 December 2023, 10:00:36 UTC
Make AnnotatedIOBuffer reading more generic
Tip revision: c2b441b
File Mode Size
.devcontainer
.github
base
cli
contrib
deps
doc
etc
src
stdlib
test
.buildkite-external-version -rw-r--r-- 5 bytes
.clang-format -rw-r--r-- 3.3 KB
.clangd -rw-r--r-- 114 bytes
.codecov.yml -rw-r--r-- 52 bytes
.git-blame-ignore-revs -rw-r--r-- 371 bytes
.gitattributes -rw-r--r-- 65 bytes
.gitignore -rw-r--r-- 523 bytes
.mailmap -rw-r--r-- 12.7 KB
CITATION.bib -rw-r--r-- 513 bytes
CITATION.cff -rw-r--r-- 940 bytes
CONTRIBUTING.md -rw-r--r-- 23.4 KB
HISTORY.md -rw-r--r-- 372.8 KB
LICENSE.md -rw-r--r-- 1.3 KB
Make.inc -rw-r--r-- 55.9 KB
Makefile -rw-r--r-- 30.2 KB
NEWS.md -rw-r--r-- 10.6 KB
README.md -rw-r--r-- 7.4 KB
THIRDPARTY.md -rw-r--r-- 3.9 KB
VERSION -rw-r--r-- 11 bytes
julia.spdx.json -rw-r--r-- 37.8 KB
pkgimage.mk -rw-r--r-- 5.8 KB
sysimage.mk -rw-r--r-- 4.2 KB
typos.toml -rw-r--r-- 78 bytes

README.md

back to top