Skip to content

Commit ba03283

Browse files
SimonSapinRalfJung
andcommitted
Doc nits
Co-Authored-By: Ralf Jung <[email protected]>
1 parent 7a641f7 commit ba03283

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/liballoc/boxed.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<T> Box<T> {
123123
box x
124124
}
125125

126-
/// Construct a new box with uninitialized contents.
126+
/// Constructs a new box with uninitialized contents.
127127
///
128128
/// # Examples
129129
///
@@ -161,7 +161,7 @@ impl<T> Box<T> {
161161
}
162162

163163
impl<T> Box<[T]> {
164-
/// Construct a new boxed slice with uninitialized contents.
164+
/// Constructs a new boxed slice with uninitialized contents.
165165
///
166166
/// # Examples
167167
///
@@ -192,7 +192,7 @@ impl<T> Box<[T]> {
192192
}
193193

194194
impl<T> Box<mem::MaybeUninit<T>> {
195-
/// Convert to `Box<T>`.
195+
/// Converts to `Box<T>`.
196196
///
197197
/// # Safety
198198
///
@@ -228,7 +228,7 @@ impl<T> Box<mem::MaybeUninit<T>> {
228228
}
229229

230230
impl<T> Box<[mem::MaybeUninit<T>]> {
231-
/// Convert to `Box<[T]>`.
231+
/// Converts to `Box<[T]>`.
232232
///
233233
/// # Safety
234234
///

src/liballoc/rc.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl<T> Rc<T> {
327327
}))
328328
}
329329

330-
/// Construct a new Rc with uninitialized contents.
330+
/// Constructs a new `Rc` with uninitialized contents.
331331
///
332332
/// # Examples
333333
///
@@ -409,7 +409,7 @@ impl<T> Rc<T> {
409409
}
410410

411411
impl<T> Rc<[T]> {
412-
/// Construct a new reference-counted slice with uninitialized contents.
412+
/// Constructs a new reference-counted slice with uninitialized contents.
413413
///
414414
/// # Examples
415415
///
@@ -441,7 +441,7 @@ impl<T> Rc<[T]> {
441441
}
442442

443443
impl<T> Rc<mem::MaybeUninit<T>> {
444-
/// Convert to `Rc<T>`.
444+
/// Converts to `Rc<T>`.
445445
///
446446
/// # Safety
447447
///
@@ -480,7 +480,7 @@ impl<T> Rc<mem::MaybeUninit<T>> {
480480
}
481481

482482
impl<T> Rc<[mem::MaybeUninit<T>]> {
483-
/// Convert to `Rc<[T]>`.
483+
/// Converts to `Rc<[T]>`.
484484
///
485485
/// # Safety
486486
///
@@ -721,7 +721,7 @@ impl<T: ?Sized> Rc<T> {
721721
///
722722
/// Any other `Rc` or [`Weak`] pointers to the same value must not be dereferenced
723723
/// for the duration of the returned borrow.
724-
/// This is trivially the case if no such pointer exist,
724+
/// This is trivially the case if no such pointers exist,
725725
/// for example immediately after `Rc::new`.
726726
///
727727
/// # Examples

src/liballoc/sync.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ impl<T> Arc<T> {
311311
Self::from_inner(Box::into_raw_non_null(x))
312312
}
313313

314-
/// Construct a Arc box with uninitialized contents.
314+
/// Constructs a new `Arc` with uninitialized contents.
315315
///
316316
/// # Examples
317317
///
@@ -393,7 +393,7 @@ impl<T> Arc<T> {
393393
}
394394

395395
impl<T> Arc<[T]> {
396-
/// Construct a new reference-counted slice with uninitialized contents.
396+
/// Constructs a new reference-counted slice with uninitialized contents.
397397
///
398398
/// # Examples
399399
///
@@ -425,7 +425,7 @@ impl<T> Arc<[T]> {
425425
}
426426

427427
impl<T> Arc<mem::MaybeUninit<T>> {
428-
/// Convert to `Arc<T>`.
428+
/// Converts to `Arc<T>`.
429429
///
430430
/// # Safety
431431
///
@@ -464,7 +464,7 @@ impl<T> Arc<mem::MaybeUninit<T>> {
464464
}
465465

466466
impl<T> Arc<[mem::MaybeUninit<T>]> {
467-
/// Convert to `Arc<[T]>`.
467+
/// Converts to `Arc<[T]>`.
468468
///
469469
/// # Safety
470470
///
@@ -1106,7 +1106,7 @@ impl<T: ?Sized> Arc<T> {
11061106
///
11071107
/// Any other `Arc` or [`Weak`] pointers to the same value must not be dereferenced
11081108
/// for the duration of the returned borrow.
1109-
/// This is trivially the case if no such pointer exist,
1109+
/// This is trivially the case if no such pointers exist,
11101110
/// for example immediately after `Arc::new`.
11111111
///
11121112
/// # Examples

src/libcore/ptr/unique.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ impl<T: ?Sized> Unique<T> {
123123
&mut *self.as_ptr()
124124
}
125125

126-
/// Cast to a pointer of another type
126+
/// Casts to a pointer of another type
127127
#[inline]
128128
pub const fn cast<U>(self) -> Unique<U> {
129129
unsafe {

0 commit comments

Comments
 (0)