@@ -428,7 +428,7 @@ impl<T> Arc<T> {
428428 /// }
429429 ///
430430 /// impl Gadget {
431- /// /// Construct a reference counted Gadget.
431+ /// /// Constructs a reference counted Gadget.
432432 /// fn new() -> Arc<Self> {
433433 /// // `me` is a `Weak<Gadget>` pointing at the new allocation of the
434434 /// // `Arc` we're constructing.
@@ -438,7 +438,7 @@ impl<T> Arc<T> {
438438 /// })
439439 /// }
440440 ///
441- /// /// Return a reference counted pointer to Self.
441+ /// /// Returns a reference counted pointer to Self.
442442 /// fn me(&self) -> Arc<Self> {
443443 /// self.me.upgrade().unwrap()
444444 /// }
@@ -2534,7 +2534,7 @@ unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Arc<T, A> {
25342534}
25352535
25362536impl < A : Allocator > Arc < dyn Any + Send + Sync , A > {
2537- /// Attempt to downcast the `Arc<dyn Any + Send + Sync>` to a concrete type.
2537+ /// Attempts to downcast the `Arc<dyn Any + Send + Sync>` to a concrete type.
25382538 ///
25392539 /// # Examples
25402540 ///
@@ -3550,7 +3550,7 @@ impl<T, const N: usize> From<[T; N]> for Arc<[T]> {
35503550#[ cfg( not( no_global_oom_handling) ) ]
35513551#[ stable( feature = "shared_from_slice" , since = "1.21.0" ) ]
35523552impl < T : Clone > From < & [ T ] > for Arc < [ T ] > {
3553- /// Allocate a reference-counted slice and fill it by cloning `v`'s items.
3553+ /// Allocates a reference-counted slice and fills it by cloning `v`'s items.
35543554 ///
35553555 /// # Example
35563556 ///
@@ -3569,7 +3569,7 @@ impl<T: Clone> From<&[T]> for Arc<[T]> {
35693569#[ cfg( not( no_global_oom_handling) ) ]
35703570#[ stable( feature = "shared_from_slice" , since = "1.21.0" ) ]
35713571impl From < & str > for Arc < str > {
3572- /// Allocate a reference-counted `str` and copy `v` into it.
3572+ /// Allocates a reference-counted `str` and copies `v` into it.
35733573 ///
35743574 /// # Example
35753575 ///
@@ -3588,7 +3588,7 @@ impl From<&str> for Arc<str> {
35883588#[ cfg( not( no_global_oom_handling) ) ]
35893589#[ stable( feature = "shared_from_slice" , since = "1.21.0" ) ]
35903590impl From < String > for Arc < str > {
3591- /// Allocate a reference-counted `str` and copy `v` into it.
3591+ /// Allocates a reference-counted `str` and copies `v` into it.
35923592 ///
35933593 /// # Example
35943594 ///
@@ -3626,7 +3626,7 @@ impl<T: ?Sized, A: Allocator> From<Box<T, A>> for Arc<T, A> {
36263626#[ cfg( not( no_global_oom_handling) ) ]
36273627#[ stable( feature = "shared_from_slice" , since = "1.21.0" ) ]
36283628impl < T , A : Allocator + Clone > From < Vec < T , A > > for Arc < [ T ] , A > {
3629- /// Allocate a reference-counted slice and move `v`'s items into it.
3629+ /// Allocates a reference-counted slice and moves `v`'s items into it.
36303630 ///
36313631 /// # Example
36323632 ///
@@ -3659,8 +3659,8 @@ where
36593659 B : ToOwned + ?Sized ,
36603660 Arc < B > : From < & ' a B > + From < B :: Owned > ,
36613661{
3662- /// Create an atomically reference-counted pointer from
3663- /// a clone-on-write pointer by copying its content.
3662+ /// Creates an atomically reference-counted pointer from a clone-on-write
3663+ /// pointer by copying its content.
36643664 ///
36653665 /// # Example
36663666 ///
@@ -3816,7 +3816,7 @@ impl<T: ?Sized, A: Allocator> AsRef<T> for Arc<T, A> {
38163816#[ stable( feature = "pin" , since = "1.33.0" ) ]
38173817impl < T : ?Sized , A : Allocator > Unpin for Arc < T , A > { }
38183818
3819- /// Get the offset within an `ArcInner` for the payload behind a pointer.
3819+ /// Gets the offset within an `ArcInner` for the payload behind a pointer.
38203820///
38213821/// # Safety
38223822///
@@ -3838,7 +3838,7 @@ fn data_offset_align(align: usize) -> usize {
38383838 layout. size ( ) + layout. padding_needed_for ( align)
38393839}
38403840
3841- /// A unique owning pointer to a [`ArcInner`] **that does not imply the contents are initialized,**
3841+ /// A unique owning pointer to an [`ArcInner`] **that does not imply the contents are initialized,**
38423842/// but will deallocate it (without dropping the value) when dropped.
38433843///
38443844/// This is a helper for [`Arc::make_mut()`] to ensure correct cleanup on panic.
@@ -3851,7 +3851,7 @@ struct UniqueArcUninit<T: ?Sized, A: Allocator> {
38513851
38523852#[ cfg( not( no_global_oom_handling) ) ]
38533853impl < T : ?Sized , A : Allocator > UniqueArcUninit < T , A > {
3854- /// Allocate a ArcInner with layout suitable to contain `for_value` or a clone of it.
3854+ /// Allocates an ArcInner with layout suitable to contain `for_value` or a clone of it.
38553855 fn new ( for_value : & T , alloc : A ) -> UniqueArcUninit < T , A > {
38563856 let layout = Layout :: for_value ( for_value) ;
38573857 let ptr = unsafe {
0 commit comments