We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298f8ee commit 719c734Copy full SHA for 719c734
src/libstd/ffi/c_str.rs
@@ -137,7 +137,8 @@ pub struct CString {
137
///
138
/// Note that this structure is `repr(C)` and is can be
139
/// placed in the signatures of FFI functions. A `&CStr` is equivalent to `*const c_char`,
140
-/// but offers a richer API.
+/// but offers a richer API. If you want to handle null pointers, too, using an
141
+/// `Option<&CStr>` will work.
142
143
/// # Examples
144
0 commit comments