Skip to content

Commit

Permalink
Re-word function doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 19, 2025
1 parent cb1a0ed commit 9cba488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ mod tables;

use crate::tables::{ASCII_CONTINUE, ASCII_START, CHUNK, LEAF, TRIE_CONTINUE, TRIE_START};

/// Returns [`true`] if `ch` satisfies the XID\_Start Unicode property.
/// Whether the character has the Unicode property XID\_Start.
pub fn is_xid_start(ch: char) -> bool {
if ch.is_ascii() {
return ASCII_START.0[ch as usize];
Expand All @@ -260,7 +260,7 @@ pub fn is_xid_start(ch: char) -> bool {
unsafe { LEAF.0.get_unchecked(offset) }.wrapping_shr(ch as u32 % 8) & 1 != 0
}

/// Returns [`true`] if `ch` satisfies the XID\_Continue Unicode property.
/// Whether the character has the Unicode property XID\_Continue.
pub fn is_xid_continue(ch: char) -> bool {
if ch.is_ascii() {
return ASCII_CONTINUE.0[ch as usize];
Expand Down

0 comments on commit 9cba488

Please sign in to comment.