Skip to content

Commit 9119729

Browse files
committed
Rename ThreadBuilderExt to BuilderExt
1 parent 10cb9c9 commit 9119729

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

library/std/src/os/horizon/thread.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/// Extensions on [`std::thread::Builder`] for the Nintendo 3DS.
2525
///
2626
/// [`std::thread::Builder`]: crate::thread::Builder
27-
pub trait ThreadBuilderExt: Sized {
27+
pub trait BuilderExt: Sized {
2828
/// Sets the priority level for the new thread.
2929
///
3030
/// Low values gives the thread higher priority. For userland apps, this has
@@ -53,7 +53,7 @@ pub trait ThreadBuilderExt: Sized {
5353
fn processor_id(mut self, processor_id: i32) -> Self;
5454
}
5555

56-
impl ThreadBuilderExt for crate::thread::Builder {
56+
impl BuilderExt for crate::thread::Builder {
5757
fn priority(mut self, priority: i32) -> Self {
5858
self.native_options.priority = Some(priority);
5959
self

library/std/src/sys/unix/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ pub struct BuilderOptions {
292292
/// The spawned thread's priority value
293293
#[cfg(target_os = "horizon")]
294294
pub(crate) priority: Option<i32>,
295-
/// The processor to spawn the thread on. See `os::horizon::thread::ThreadBuilderExt`.
295+
/// The processor to spawn the thread on. See [`os::horizon::thread::BuilderExt`].
296296
#[cfg(target_os = "horizon")]
297297
pub(crate) processor_id: Option<i32>,
298298
}

0 commit comments

Comments
 (0)