Rollup merge of #116221 - ArchUsr64:patch-1, r=ChrisDenton
core/slice: Fix inconsistency between docs for `rotate_left` and `rotate_right` A minor fix for documentation inconsistency as shown below: ## Before: ![2023_09_28_0k3_Kleki](https://github.com/rust-lang/rust/assets/83179501/569a49d3-0d72-49ac-92a2-ef5e1d94130b) ## After: ![image](https://github.com/rust-lang/rust/assets/83179501/afd0c8d7-6fb7-4878-801b-b47c8fe23c7d) Docs url: https://doc.rust-lang.org/stable/core/primitive.slice.html#method.rotate_left
This commit is contained in:
commit
ff958ae3e4
@ -3410,7 +3410,7 @@ impl<T> [T] {
|
||||
/// assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
|
||||
/// ```
|
||||
///
|
||||
/// Rotate a subslice:
|
||||
/// Rotating a subslice:
|
||||
///
|
||||
/// ```
|
||||
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user