Add the missing word · rust-lang/rust@01ca7a0 (original) (raw)
`@@ -642,8 +642,8 @@ impl [T] {
`
642
642
`///
`
643
643
`` /// You can think of this like .get(index).unwrap_unchecked()
. It's UB
``
644
644
`` /// to call .get_unchecked(len)
, even if you immediately convert to a
``
645
``
`` -
/// pointer. And it's UB to call .get_unchecked(..len +1)
or
``
646
``
`` -
/// .get_unchecked(..=len)
similar.
``
``
645
`` +
/// pointer. And it's UB to call .get_unchecked(..len +1)
,
``
``
646
`` +
/// .get_unchecked(..=len)
, or similar.
``
647
647
`///
`
648
648
`` /// [get
]: slice::get
``
649
649
`/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
`
`@@ -682,8 +682,8 @@ impl [T] {
`
682
682
`///
`
683
683
`` /// You can think of this like .get_mut(index).unwrap_unchecked()
. It's
``
684
684
`` /// 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)
or
``
686
``
`` -
/// .get_unchecked_mut(..=len)
similar.
``
``
685
`` +
/// to a pointer. And it's UB to call .get_unchecked_mut(..len +1)
,
``
``
686
`` +
/// .get_unchecked_mut(..=len)
, or similar.
``
687
687
`///
`
688
688
`` /// [get_mut
]: slice::get_mut
``
689
689
`/// [undefined behavior]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
`