Skip to content

Commit 945dbb6

Browse files
authored
Apply suggestions from code review
1 parent c9aa6fa commit 945dbb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grapheme.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ impl GraphemeCursor {
293293
// ascii range.
294294
if ch >= '\u{20}' {
295295
GC_Any
296-
} else if ch == '\u{a}' {
296+
} else if ch == '\n' {
297297
GC_LF
298-
} else if ch == '\u{d}' {
298+
} else if ch == '\r' {
299299
GC_CR
300300
} else {
301301
GC_Control

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy