about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2017-10-11 17:52:39 -0500
committerFederico Mena Quintero <federico@gnome.org>2017-10-11 17:52:39 -0500
commita9a4ce6dcc694e2ea35344aa790a73a5dea573f0 (patch)
tree97bd2f47fb687578284e518211f14ff5448a35e2 /src/libstd
parentd5bdfbced63c3d31b0f55a999cd0beb9de286d01 (diff)
downloadrust-a9a4ce6dcc694e2ea35344aa790a73a5dea573f0.tar.gz
rust-a9a4ce6dcc694e2ea35344aa790a73a5dea573f0.zip
ffi/c_str.rs: Fix method/function confusion
Per https://github.com/rust-lang/rust/pull/44855#discussion_r144049179
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/ffi/c_str.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs
index 6541ad3f872..51a5865d29c 100644
--- a/src/libstd/ffi/c_str.rs
+++ b/src/libstd/ffi/c_str.rs
@@ -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