Skip to content

Commit 545175c

Browse files
authored
Fix addition formatting
1 parent 01ca7a0 commit 545175c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/slice/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ impl<T> [T] {
642642
///
643643
/// You can think of this like `.get(index).unwrap_unchecked()`. It's UB
644644
/// to call `.get_unchecked(len)`, even if you immediately convert to a
645-
/// pointer. And it's UB to call `.get_unchecked(..len +1)`,
645+
/// pointer. And it's UB to call `.get_unchecked(..len + 1)`,
646646
/// `.get_unchecked(..=len)`, or similar.
647647
///
648648
/// [`get`]: slice::get
@@ -682,7 +682,7 @@ impl<T> [T] {
682682
///
683683
/// You can think of this like `.get_mut(index).unwrap_unchecked()`. It's
684684
/// UB to call `.get_unchecked_mut(len)`, even if you immediately convert
685-
/// to a pointer. And it's UB to call `.get_unchecked_mut(..len +1)`,
685+
/// to a pointer. And it's UB to call `.get_unchecked_mut(..len + 1)`,
686686
/// `.get_unchecked_mut(..=len)`, or similar.
687687
///
688688
/// [`get_mut`]: slice::get_mut

0 commit comments

Comments
 (0)