Skip to content

Commit 4fa293c

Browse files
authored
Rollup merge of #155454 - MadeInShineA:issue-155275-fix, r=lqd
docs: Fix typo in std/src/thready/scoped.rs # Fix typo in std/src/thread/scoped.rs ## Why this pr This PR fixes the typo mentioned in #155275. I know this was originally fixed in #155325 and then in #155328. But since the first issue was closed due to some ai slop and the second one was closed because the first one was already opened, it seems to me that this PR is still needed. ## What this pr does This PR "just" fixes a typo inside the `std/src/thread/scoped.rs` file Changing the comment from this: ``` /// borrow non-`'static` data from the outside the scope. See [`scope`] for /// details. ``` to this: ``` /// borrow non-`'static` data from outside the scope. See [`scope`] for /// details. ```
2 parents 0c326ec + 10cc6c4 commit 4fa293c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/std/src/thread/scoped.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl<'scope, 'env> Scope<'scope, 'env> {
177177
/// Spawns a new thread within a scope, returning a [`ScopedJoinHandle`] for it.
178178
///
179179
/// Unlike non-scoped threads, threads spawned with this function may
180-
/// borrow non-`'static` data from the outside the scope. See [`scope`] for
180+
/// borrow non-`'static` data from outside the scope. See [`scope`] for
181181
/// details.
182182
///
183183
/// The join handle provides a [`join`] method that can be used to join the spawned

0 commit comments

Comments
 (0)