Skip to content

Commit

Permalink
Add the missing word
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmcm authored Oct 25, 2023
1 parent 2c13ee8 commit 01ca7a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,8 @@ impl<T> [T] {
///
/// You can think of this like `.get(index).unwrap_unchecked()`. It's UB
/// to call `.get_unchecked(len)`, even if you immediately convert to a
/// pointer. And it's UB to call `.get_unchecked(..len +1)` or
/// `.get_unchecked(..=len)` similar.
/// pointer. And it's UB to call `.get_unchecked(..len +1)`,
/// `.get_unchecked(..=len)`, or similar.
///
/// [`get`]: slice::get
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
Expand Down Expand Up @@ -682,8 +682,8 @@ impl<T> [T] {
///
/// You can think of this like `.get_mut(index).unwrap_unchecked()`. It's
/// UB to call `.get_unchecked_mut(len)`, even if you immediately convert
/// to a pointer. And it's UB to call `.get_unchecked_mut(..len +1)` or
/// `.get_unchecked_mut(..=len)` similar.
/// to a pointer. And it's UB to call `.get_unchecked_mut(..len +1)`,
/// `.get_unchecked_mut(..=len)`, or similar.
///
/// [`get_mut`]: slice::get_mut
/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
Expand Down

0 comments on commit 01ca7a0

Please sign in to comment.