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:  ## After:  Docs url: https://doc.rust-lang.org/stable/core/primitive.slice.html#method.rotate_left
This commit is contained in:
commit
ff958ae3e4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue