Skip to content

Commit a9a4ce6

Browse files
ffi/c_str.rs: Fix method/function confusion
Per #44855 (comment)
1 parent d5bdfbc commit a9a4ce6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/ffi/c_str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,10 @@ pub struct IntoStringError {
297297
impl CString {
298298
/// Creates a new C-compatible string from a container of bytes.
299299
///
300-
/// This method will consume the provided data and use the
300+
/// This function will consume the provided data and use the
301301
/// 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*
302+
/// there is a trailing 0 byte. This trailing 0 byte will be
303+
/// appended by this function; the provided data should *not*
304304
/// contain any 0 bytes in it.
305305
///
306306
/// # Examples

0 commit comments

Comments
 (0)