mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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
@ -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…
Reference in New Issue
Block a user