about summary refs log tree commit diff
path: root/library/alloc/src/string.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-30 04:34:13 +0000
committerbors <bors@rust-lang.org>2021-07-30 04:34:13 +0000
commitfe1c942eee3489743d655d81ca89166217db0547 (patch)
tree093f237e01769880448c5220665ea3d192d56e78 /library/alloc/src/string.rs
parente66a8c260c0bcc4e7a8943f01d75d70ff640fb38 (diff)
parentffcf8a0d7681bb5038dc00479d824d9e20f5f989 (diff)
downloadrust-fe1c942eee3489743d655d81ca89166217db0547.tar.gz
rust-fe1c942eee3489743d655d81ca89166217db0547.zip
Auto merge of #87445 - amalik18:issue-83584-fix, r=kennytm
Fix may not to appropriate might not or must not

I went through and changed occurrences of `may not` to be more explicit with `might not` and `must not`.
Diffstat (limited to 'library/alloc/src/string.rs')
-rw-r--r--library/alloc/src/string.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 0d8678291be..bc5ab3637ae 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -921,7 +921,7 @@ impl String {
     /// assert!(s.capacity() >= 10);
     /// ```
     ///
-    /// This may not actually increase the capacity:
+    /// This might not actually increase the capacity:
     ///
     /// ```
     /// let mut s = String::with_capacity(10);
@@ -969,7 +969,7 @@ impl String {
     /// assert!(s.capacity() >= 10);
     /// ```
     ///
-    /// This may not actually increase the capacity:
+    /// This might not actually increase the capacity:
     ///
     /// ```
     /// let mut s = String::with_capacity(10);
@@ -1517,7 +1517,7 @@ impl String {
     }
 
     /// Returns the length of this `String`, in bytes, not [`char`]s or
-    /// graphemes. In other words, it may not be what a human considers the
+    /// graphemes. In other words, it might not be what a human considers the
     /// length of the string.
     ///
     /// # Examples