about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPoliorcetics <poliorcetics@users.noreply.github.com>2020-08-14 19:08:09 +0200
committerGitHub <noreply@github.com>2020-08-14 19:08:09 +0200
commitee4f893e27a6270cd84dcc4a27884d76722cc0fd (patch)
treed8be45730fff0921beb8866d49e282ee7ab2bdc2
parent2adc8c0e5fd34d88a601d9c572bb2f29d23d0357 (diff)
downloadrust-ee4f893e27a6270cd84dcc4a27884d76722cc0fd.tar.gz
rust-ee4f893e27a6270cd84dcc4a27884d76722cc0fd.zip
Apply suggestions from code review
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
-rw-r--r--library/std/src/ffi/c_str.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/ffi/c_str.rs b/library/std/src/ffi/c_str.rs
index 194573da767..51bc8c1c415 100644
--- a/library/std/src/ffi/c_str.rs
+++ b/library/std/src/ffi/c_str.rs
@@ -329,7 +329,7 @@ impl FromVecWithNulError {
 /// [`CString::into_string`] performs UTF-8 validation on those bytes and may
 /// return this error.
 ///
-/// This `struct` is created by the [`CString::into_string`] method. See
+/// This `struct` is created by [`CString::into_string()`]. See
 /// its documentation for more.
 #[derive(Clone, PartialEq, Eq, Debug)]
 #[stable(feature = "cstring_into", since = "1.7.0")]
@@ -566,7 +566,7 @@ impl CString {
         vec
     }
 
-    /// Equivalent to the [`CString::into_bytes`] function except that the
+    /// Equivalent to [`CString::into_bytes()`] except that the
     /// returned vector includes the trailing nul terminator.
     ///
     /// # Examples
@@ -605,7 +605,7 @@ impl CString {
         &self.inner[..self.inner.len() - 1]
     }
 
-    /// Equivalent to the [`CString::as_bytes`] function except that the
+    /// Equivalent to [`CString::as_bytes()`] except that the
     /// returned slice includes the trailing nul terminator.
     ///
     /// # Examples