Skip to content

docs: drop stray "the" in Scope::spawn doc comment#155328

Closed
MukundaKatta wants to merge 1 commit intorust-lang:mainfrom
MukundaKatta:fix-scoped-thread-docs-typo
Closed

docs: drop stray "the" in Scope::spawn doc comment#155328
MukundaKatta wants to merge 1 commit intorust-lang:mainfrom
MukundaKatta:fix-scoped-thread-docs-typo

Conversation

@MukundaKatta
Copy link
Copy Markdown

@MukundaKatta MukundaKatta commented Apr 15, 2026

Summary

library/std/src/thread/scoped.rs:180 reads:

borrow non-`'static` data from the outside the scope. See [`scope`] for details.

Dropping the stray "the" so it reads "from outside the scope", matching natural English and the phrasing already used elsewhere in this module.

Fixes #155275

Test plan

  • One-word docs-only change, no behavior impact

`library/std/src/thread/scoped.rs` L180 read:

    /// borrow non-`'static` data from the outside the scope.

which has an extra "the". Dropping it to match natural English and
the phrasing used elsewhere in the same module (see `scope` docs).

Fixes rust-lang#155275
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Apr 15, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 15, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, jhpratt

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 15, 2026

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

@reddevilmidzy
Copy link
Copy Markdown
Member

duplicate of #155325

Please check if there are any previously submitted PRs before your next contribution.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo on where a scoped thread can borrow from

4 participants