Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit 2877b71

Browse files
authored
Refs #150 -- document CStr itself (#205)
1 parent 6f9db8c commit 2877b71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types.rs

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ impl Mode {
1414
}
1515
}
1616

17+
/// A string that is guaranteed to have exactly one NUL byte, which is at the
18+
/// end. Used for interoperability with kernel APIs that take C strings.
1719
#[repr(transparent)]
1820
pub struct CStr(str);
1921

0 commit comments

Comments
 (0)