about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-28 15:58:44 +0200
committerGitHub <noreply@github.com>2023-09-28 15:58:44 +0200
commitff958ae3e4d56ad2bb76479648e0ccb7022f9f95 (patch)
tree80f8279699b3a89560bfb502de39d8838b8ca2f1
parentefc938312c0265e82fb155529101f8a8e5fa5c45 (diff)
parent5e26e8c5bdd82c507f1ab4fdb29cad6f5861e4bd (diff)
downloadrust-ff958ae3e4d56ad2bb76479648e0ccb7022f9f95.tar.gz
rust-ff958ae3e4d56ad2bb76479648e0ccb7022f9f95.zip
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
-rw-r--r--library/core/src/slice/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 0d635aced85..a19fcf93c4d 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -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'];