about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPocakking <42542447+Pocakking@users.noreply.github.com>2020-04-02 20:01:29 +0200
committerPocakking <42542447+Pocakking@users.noreply.github.com>2020-04-02 20:01:29 +0200
commit354ddbfb3f14f68aecb63d87fc31f87400b6f820 (patch)
treedee528a785d2cfe3638ca6425f8261742a718997
parent0f72ce1b271b40a5652049362e6aab5914f7b1d3 (diff)
downloadrust-354ddbfb3f14f68aecb63d87fc31f87400b6f820.tar.gz
rust-354ddbfb3f14f68aecb63d87fc31f87400b6f820.zip
Fix typo in u8::to_ascii_uppercase and u8::to_ascii_lowercase
fith => fifth
-rw-r--r--src/libcore/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 853092dd85e..c85064759ea 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -4376,7 +4376,7 @@ impl u8 {
     #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
     #[inline]
     pub fn to_ascii_uppercase(&self) -> u8 {
-        // Unset the fith bit if this is a lowercase letter
+        // Unset the fifth bit if this is a lowercase letter
         *self & !((self.is_ascii_lowercase() as u8) << 5)
     }
 
@@ -4399,7 +4399,7 @@ impl u8 {
     #[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
     #[inline]
     pub fn to_ascii_lowercase(&self) -> u8 {
-        // Set the fith bit if this is an uppercase letter
+        // Set the fifth bit if this is an uppercase letter
         *self | ((self.is_ascii_uppercase() as u8) << 5)
     }