Skip to content

Commit e4c366e

Browse files
author
Thomas Bahn
committed
Fix documentation of caret_decode
1 parent c160db3 commit e4c366e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/free_functions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ pub fn caret_encode<C:Copy+Into<u8>>(c: C) -> Option<AsciiChar> {
2626
}}
2727
}
2828

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)
3030
/// letter, or `None` if the letter is not used in caret notation.
3131
///
3232
/// This function is the inverse of `caret_encode()`.
3333
///
3434
/// # Examples
3535
///
3636
/// Basic usage:
37+
///
3738
/// ```
3839
/// # use ascii::{AsciiChar, caret_decode};
3940
/// assert_eq!(caret_decode(b'?'), Some(AsciiChar::DEL));
@@ -42,6 +43,7 @@ pub fn caret_encode<C:Copy+Into<u8>>(c: C) -> Option<AsciiChar> {
4243
/// ```
4344
///
4445
/// Symmetry:
46+
///
4547
/// ```
4648
/// # use ascii::{AsciiChar, caret_encode, caret_decode};
4749
/// assert_eq!(caret_encode(AsciiCHar::US).flat_map(caret_decode), Some(AsciiChar::US));

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy