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 d5bdfbc commit a9a4ce6Copy full SHA for a9a4ce6
src/libstd/ffi/c_str.rs
@@ -297,10 +297,10 @@ pub struct IntoStringError {
297
impl CString {
298
/// Creates a new C-compatible string from a container of bytes.
299
///
300
- /// This method will consume the provided data and use the
+ /// This function will consume the provided data and use the
301
/// underlying bytes to construct a new string, ensuring that
302
- /// there is a trailing 0 byte. This trailing 0 byte will be
303
- /// appended by this method; the provided data should *not*
+ /// there is a trailing 0 byte. This trailing 0 byte will be
+ /// appended by this function; the provided data should *not*
304
/// contain any 0 bytes in it.
305
306
/// # Examples
0 commit comments