File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,15 @@ pub fn caret_encode<C:Copy+Into<u8>>(c: C) -> Option<AsciiChar> {
26
26
} }
27
27
}
28
28
29
- /// Returns the conrol code represented by a [caret notation](https://en.wikipedia.org/wiki/Caret_notation)
29
+ /// Returns the control code represented by a [caret notation](https://en.wikipedia.org/wiki/Caret_notation)
30
30
/// letter, or `None` if the letter is not used in caret notation.
31
31
///
32
32
/// This function is the inverse of `caret_encode()`.
33
33
///
34
34
/// # Examples
35
35
///
36
36
/// Basic usage:
37
+ ///
37
38
/// ```
38
39
/// # use ascii::{AsciiChar, caret_decode};
39
40
/// assert_eq!(caret_decode(b'?'), Some(AsciiChar::DEL));
@@ -42,6 +43,7 @@ pub fn caret_encode<C:Copy+Into<u8>>(c: C) -> Option<AsciiChar> {
42
43
/// ```
43
44
///
44
45
/// Symmetry:
46
+ ///
45
47
/// ```
46
48
/// # use ascii::{AsciiChar, caret_encode, caret_decode};
47
49
/// assert_eq!(caret_encode(AsciiCHar::US).flat_map(caret_decode), Some(AsciiChar::US));
You can’t perform that action at this time.
0 commit comments