add link to Builder (code review improvement)

This commit is contained in:
Evan Jones 2025-10-16 09:07:57 -04:00
parent 0e2130c2c9
commit c4dc39be05
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

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