Skip to content

Commit 1b7491c

Browse files
committed
Fix documented examples to not use the deprecated is_alphabetic function (#1807)
1 parent a44b52e commit 1b7491c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/choosing_a_combinator.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ The following parsers could be found on [docs.rs number section](https://docs.rs
127127

128128
Use these functions with a combinator like `take_while`:
129129

130-
- [`is_alphabetic`](https://docs.rs/nom/latest/nom/character/fn.is_alphabetic.html): Tests if byte is ASCII alphabetic: `[A-Za-z]`
131-
- [`is_alphanumeric`](https://docs.rs/nom/latest/nom/character/fn.is_alphanumeric.html): Tests if byte is ASCII alphanumeric: `[A-Za-z0-9]`
132-
- [`is_digit`](https://docs.rs/nom/latest/nom/character/fn.is_digit.html): Tests if byte is ASCII digit: `[0-9]`
133-
- [`is_hex_digit`](https://docs.rs/nom/latest/nom/character/fn.is_hex_digit.html): Tests if byte is ASCII hex digit: `[0-9A-Fa-f]`
134-
- [`is_oct_digit`](https://docs.rs/nom/latest/nom/character/fn.is_oct_digit.html): Tests if byte is ASCII octal digit: `[0-7]`
130+
- [`AsChar::is_alpha`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_alpha): Tests if byte is ASCII alphabetic: `[A-Za-z]`
131+
- [`AsChar::is_alphanum`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_alphanum): Tests if byte is ASCII alphanumeric: `[A-Za-z0-9]`
132+
- [`AsChar::is_dec_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_dec_digit): Tests if byte is ASCII digit: `[0-9]`
133+
- [`AsChar::is_hex_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_hex_digit): Tests if byte is ASCII hex digit: `[0-9A-Fa-f]`
134+
- [`AsChar::is_oct_digit`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_oct_digit): Tests if byte is ASCII octal digit: `[0-7]`
135135
- [`is_bin_digit`](https://docs.rs/nom/latest/nom/character/fn.is_bin_digit.html): Tests if byte is ASCII binary digit: `[0-1]`
136-
- [`is_space`](https://docs.rs/nom/latest/nom/character/fn.is_space.html): Tests if byte is ASCII space or tab: `[ \t]`
137-
- [`is_newline`](https://docs.rs/nom/latest/nom/character/fn.is_newline.html): Tests if byte is ASCII newline: `[\n]`
136+
- [`AsChar::is_space`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_space): Tests if byte is ASCII space or tab: `[ \t]`
137+
- [`AsChar::is_newline`](https://docs.rs/nom/latest/nom/trait.AsChar.html#tymethod.is_newline): Tests if byte is ASCII newline: `[\n]`
138138

139139
Alternatively there are ready to use functions:
140140

0 commit comments

Comments
 (0)