File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ impl<Static: StaticAtomSet> Atom<Static> {
478478 /// [`to_ascii_uppercase`]: https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_uppercase
479479 pub fn to_ascii_uppercase ( & self ) -> Self {
480480 for ( i, b) in self . bytes ( ) . enumerate ( ) {
481- if let b'a' ... b'z' = b {
481+ if let b'a' ..= b'z' = b {
482482 return Atom :: from_mutated_str ( self , |s| s[ i..] . make_ascii_uppercase ( ) )
483483 }
484484 }
@@ -490,7 +490,7 @@ impl<Static: StaticAtomSet> Atom<Static> {
490490 /// [`to_ascii_lowercase`]: https://doc.rust-lang.org/std/ascii/trait.AsciiExt.html#tymethod.to_ascii_lowercase
491491 pub fn to_ascii_lowercase ( & self ) -> Self {
492492 for ( i, b) in self . bytes ( ) . enumerate ( ) {
493- if let b'A' ... b'Z' = b {
493+ if let b'A' ..= b'Z' = b {
494494 return Atom :: from_mutated_str ( self , |s| s[ i..] . make_ascii_lowercase ( ) )
495495 }
496496 }
You can’t perform that action at this time.
0 commit comments