Skip to content

Commit ff958ae

Browse files
authored
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
2 parents efc9383 + 5e26e8c commit ff958ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3410,7 +3410,7 @@ impl<T> [T] {
34103410
/// assert_eq!(a, ['e', 'f', 'a', 'b', 'c', 'd']);
34113411
/// ```
34123412
///
3413-
/// Rotate a subslice:
3413+
/// Rotating a subslice:
34143414
///
34153415
/// ```
34163416
/// let mut a = ['a', 'b', 'c', 'd', 'e', 'f'];

0 commit comments

Comments
 (0)