diff --git a/library/alloc/src/rc.rs b/library/alloc/src/rc.rs index 0f7c448996da0..8fdba17cc1f80 100644 --- a/library/alloc/src/rc.rs +++ b/library/alloc/src/rc.rs @@ -2239,7 +2239,7 @@ impl Default for Rc { #[cfg(not(no_global_oom_handling))] #[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")] impl Default for Rc<[T]> { - /// Creates an empty [T] inside an Rc + /// Creates an empty `[T]` inside an Rc #[inline] fn default() -> Self { let arr: [T; 0] = []; diff --git a/library/alloc/src/sync.rs b/library/alloc/src/sync.rs index a03ad909113a7..969d2056798e3 100644 --- a/library/alloc/src/sync.rs +++ b/library/alloc/src/sync.rs @@ -3311,7 +3311,7 @@ impl Default for Arc { #[cfg(not(no_global_oom_handling))] #[stable(feature = "more_rc_default_impls", since = "CURRENT_RUSTC_VERSION")] impl Default for Arc<[T]> { - /// Creates an empty [T] inside an Arc + /// Creates an empty `[T]` inside an Arc #[inline] fn default() -> Self { let arr: [T; 0] = [];