add link to Builder (code review improvement)
This commit is contained in:
parent
0e2130c2c9
commit
c4dc39be05
2 changed files with 4 additions and 4 deletions
|
|
@ -620,8 +620,8 @@ impl Builder {
|
|||
/// (It is the responsibility of the program to either eventually join threads it
|
||||
/// creates or detach them; otherwise, a resource leak will result.)
|
||||
///
|
||||
/// This function creates a thread with the default parameters. To specify the
|
||||
/// new thread's stack size or the name, use [`Builder::spawn`].
|
||||
/// This function creates a thread with the default parameters of [`Builder`].
|
||||
/// To specify the new thread's stack size or the name, use [`Builder::spawn`].
|
||||
///
|
||||
/// As you can see in the signature of `spawn` there are two constraints on
|
||||
/// both the closure given to `spawn` and its return value, let's explain them:
|
||||
|
|
|
|||
|
|
@ -181,8 +181,8 @@ impl<'scope, 'env> Scope<'scope, 'env> {
|
|||
/// end of the scope. In that case, if the spawned thread panics, [`scope`] will
|
||||
/// panic after all threads are joined.
|
||||
///
|
||||
/// This function creates a thread with the default parameters. To specify the
|
||||
/// new thread's stack size or the name, use [`Builder::spawn_scoped`].
|
||||
/// This function creates a thread with the default parameters of [`Builder`].
|
||||
/// To specify the new thread's stack size or the name, use [`Builder::spawn_scoped`].
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue