Skip to content

Commit 15f45d7

Browse files
committed
Rewrite AsciiStr rustdoc
1 parent b9d1445 commit 15f45d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ascii_str.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ use AsciiCast;
66
use ascii::Ascii;
77
use ascii_string::AsciiString;
88

9-
/// A borrowed ascii string, like a slice into an `AsciiString`.
9+
/// A str with only ASCII codepoints.
10+
///
11+
/// Can either be borrowed from an `AsciiString`, or a validated `str` / `[u8]`.
1012
#[derive(PartialEq, Eq, PartialOrd, Ord, Hash)]
1113
pub struct AsciiStr {
1214
slice: [Ascii],

0 commit comments

Comments
 (0)