Skip to content

Commit 657f61f

Browse files
Kixunilmxinden
andauthored
Simplify explanation of is_valid_ident
Co-authored-by: Max Inden <[email protected]>
1 parent 1017b4a commit 657f61f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/desc.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ mod validation {
2020
matches_charset_without_colon(c) || c == ':'
2121
}
2222

23-
// check if there's at least one char
24-
// the charset_validator returns true on zeroth char
25-
// the charset_validator returns true on all remaining chars or they are digits if it returned
26-
// false
27-
// Equivalent to regex ^[?][?0-9]*$ where ? denotes char set as validated by charset_validator
23+
/// Equivalent to regex `^[?][?0-9]*$` where `?` denotes char set as validated by `charset_validator`.
2824
fn is_valid_ident<F: FnMut(char) -> bool>(input: &str, mut charset_validator: F) -> bool {
2925
let mut chars = input.chars();
3026
let zeroth = chars.next();

0 commit comments

Comments
 (0)