We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1017b4a commit 657f61fCopy full SHA for 657f61f
src/desc.rs
@@ -20,11 +20,7 @@ mod validation {
20
matches_charset_without_colon(c) || c == ':'
21
}
22
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
+ /// Equivalent to regex `^[?][?0-9]*$` where `?` denotes char set as validated by `charset_validator`.
28
fn is_valid_ident<F: FnMut(char) -> bool>(input: &str, mut charset_validator: F) -> bool {
29
let mut chars = input.chars();
30
let zeroth = chars.next();
0 commit comments