mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
ffi/c_str.rs: Fix method/function confusion
Per https://github.com/rust-lang/rust/pull/44855#discussion_r144049179
This commit is contained in:
@@ -297,10 +297,10 @@ pub struct IntoStringError {
|
||||
impl CString {
|
||||
/// Creates a new C-compatible string from a container of bytes.
|
||||
///
|
||||
/// This method will consume the provided data and use the
|
||||
/// This function will consume the provided data and use the
|
||||
/// underlying bytes to construct a new string, ensuring that
|
||||
/// there is a trailing 0 byte. This trailing 0 byte will be
|
||||
/// 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*
|
||||
/// contain any 0 bytes in it.
|
||||
///
|
||||
/// # Examples
|
||||
|
||||
Reference in New Issue
Block a user