Docs: strings and IO fixes #63816
this looks worse
The point is to avoid other bind methods to leak into the Sockets docs (https://docs.julialang.org/en/v1/stdlib/Sockets/#Base.bind). And I mean, this is how it already looks like in the docs for the relevant docstring. How would you suggest doing it?
<img width="814" height="221" alt="image" src="https://github.com/user-attachments/assets/249ab156-91c5-4833-a50f-f8e55e17204c" />
yeah, point retracted
when that happens, call [`close`](@ref) explicitly (or use the `open(filename) do io; ...; end` form,
nit: I wonder if any reader would know f is a function in this context, so that "when f returns" makes sense to them. Alternatively, we could write open(write, filename) or open(function, filename) to try to give it a real name?
LGTM, other than a question on open which you can ignore if you want
I added a ::Function, using function which is a keyword felt wrong and having an explicit write in there would probably be even more confusing. And the inline do form didn't read nicely.
vtjnash
KristofferC
A batch of small, independent documentation fixes, one commit per issue (bundled to save CI time). These were originally generated by AI, but I have read through and reviewed them manually. Reviewing commit by commit is easiest.
"unescaped inescape_string(fixes #54511)AnnotatedStringresults in thejoindocstring (fixes #55382)containsaccepts a regex (fixes #52675)rsplit(fixes #46745)openstreams are closed on garbage collection (fixes #26476)readlinebehavior at end of stream (fixes #30790)readuntilandskipchars(fixes #36132)binddocstring (fixes #45359)🤖 Generated with Claude Code