← Back to Pull requests

Docs: strings and IO fixes #63816

Merged
KristofferC merged 9 files (67 lines) on Oct 16, 2026 15:37 UTC
View on GitHub
KristofferC KristofferC commented on Oct 14, 2026 12:47 UTC
Author

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.

  • Add string interpolation example with indexing (fixes #37646)

  • Clarify how to keep " unescaped in escape_string (fixes #54511)

  • Mention AnnotatedString results in the join docstring (fixes #55382)

  • Document that contains accepts a regex (fixes #52675)

  • Clarify the order of the substrings returned by rsplit (fixes #46745)

  • Document that open streams are closed on garbage collection (fixes #26476)

  • Document readline behavior at end of stream (fixes #30790)

  • Cross-reference readuntil and skipchars (fixes #36132)

  • Document that editor environment variables are parsed like shell commands (fixes #44508)

  • Sockets docs: only include the socket bind docstring (fixes #45359)
  • 🤖 Generated with Claude Code

    Diff: 67 lines (+59 / -8) across 9 files Reviewer: vtjnash Review duration: 3049m
    All Vouch review confidence checks passed
    Residual risk 0.04 = Change Risk (0.45) × (1 − Review Confidence (0.91)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 67 lines diff across 9 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.91 · 5 substantive comment(s)
    0.91
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    91%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.252
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    7 items
    adienes adienes commented on code on Oct 15, 2026 09:57 UTC
    Code Review
    stdlib/Sockets/docs/src/index.md:1
    @@ -27,7 +27,7 @@ Sockets.TCPSocket
     Sockets.UDPSocket
     Sockets.accept
     Sockets.listenany
    -Sockets.bind
    +Sockets.bind(::Union{Sockets.TCPServer, Sockets.UDPSocket, Sockets.TCPSocket}, ::Sockets.IPAddr, ::Integer)

    this looks worse

    KristofferC KristofferC commented on code on Oct 15, 2026 10:01 UTC
    Code Review
    stdlib/Sockets/docs/src/index.md:1
    @@ -27,7 +27,7 @@ Sockets.TCPSocket
     Sockets.UDPSocket
     Sockets.accept
     Sockets.listenany
    -Sockets.bind
    +Sockets.bind(::Union{Sockets.TCPServer, Sockets.UDPSocket, Sockets.TCPSocket}, ::Sockets.IPAddr, ::Integer)

    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" />

    adienes adienes commented on code on Oct 15, 2026 10:18 UTC
    Code Review
    stdlib/Sockets/docs/src/index.md:1
    @@ -27,7 +27,7 @@ Sockets.TCPSocket
     Sockets.UDPSocket
     Sockets.accept
     Sockets.listenany
    -Sockets.bind
    +Sockets.bind(::Union{Sockets.TCPServer, Sockets.UDPSocket, Sockets.TCPSocket}, ::Sockets.IPAddr, ::Integer)

    yeah, point retracted

    vtjnash vtjnash commented on code on Oct 16, 2026 01:58 UTC
    Code Review
    base/iostream.jl:1
    @@ -302,6 +302,11 @@ Open a file in a mode specified by five boolean keyword arguments:
     The default when no keywords are passed is to open files for reading only.
     Returns a stream for accessing the opened file.
     
    +The stream is closed automatically when it is garbage collected, but since it is not known
    +when that happens, call [`close`](@ref) explicitly (or use the `open(f, filename)` form,

    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?

    vtjnash vtjnash approved these changes on Oct 16, 2026 02:00 UTC
    Approved Reviewer

    LGTM, other than a question on open which you can ignore if you want

    KristofferC KristofferC commented on code on Oct 16, 2026 12:17 UTC
    Code Review
    base/iostream.jl:1
    @@ -302,6 +302,11 @@ Open a file in a mode specified by five boolean keyword arguments:
     The default when no keywords are passed is to open files for reading only.
     Returns a stream for accessing the opened file.
     
    +The stream is closed automatically when it is garbage collected, but since it is not known
    +when that happens, call [`close`](@ref) explicitly (or use the `open(f, filename)` form,

    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.

    Reviewers
    Assignees
    KristofferC KristofferC
    Labels
    risk: low confidence: 91.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 45.0% (MEDIUM) · Higher = larger blast radius
    45.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 91.2% · Lower = rushed or shallow review
    91.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 3.9% · Safe to merge
    3.9%