Skip to content

Commit c4dc39b

Browse files
committed
add link to Builder (code review improvement)
1 parent 0e2130c commit c4dc39b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/std/src/thread/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ impl Builder {
620620
/// (It is the responsibility of the program to either eventually join threads it
621621
/// creates or detach them; otherwise, a resource leak will result.)
622622
///
623-
/// This function creates a thread with the default parameters. To specify the
624-
/// new thread's stack size or the name, use [`Builder::spawn`].
623+
/// This function creates a thread with the default parameters of [`Builder`].
624+
/// To specify the new thread's stack size or the name, use [`Builder::spawn`].
625625
///
626626
/// As you can see in the signature of `spawn` there are two constraints on
627627
/// both the closure given to `spawn` and its return value, let's explain them:

library/std/src/thread/scoped.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ impl<'scope, 'env> Scope<'scope, 'env> {
181181
/// end of the scope. In that case, if the spawned thread panics, [`scope`] will
182182
/// panic after all threads are joined.
183183
///
184-
/// This function creates a thread with the default parameters. To specify the
185-
/// new thread's stack size or the name, use [`Builder::spawn_scoped`].
184+
/// This function creates a thread with the default parameters of [`Builder`].
185+
/// To specify the new thread's stack size or the name, use [`Builder::spawn_scoped`].
186186
///
187187
/// # Panics
188188
///

0 commit comments

Comments
 (0)