Skip to content

Commit ee4f893

Browse files
poliorceticsJoshua Nelson
and
Joshua Nelson
authored
Apply suggestions from code review
Co-authored-by: Joshua Nelson <[email protected]>
1 parent 2adc8c0 commit ee4f893

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/ffi/c_str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl FromVecWithNulError {
329329
/// [`CString::into_string`] performs UTF-8 validation on those bytes and may
330330
/// return this error.
331331
///
332-
/// This `struct` is created by the [`CString::into_string`] method. See
332+
/// This `struct` is created by [`CString::into_string()`]. See
333333
/// its documentation for more.
334334
#[derive(Clone, PartialEq, Eq, Debug)]
335335
#[stable(feature = "cstring_into", since = "1.7.0")]
@@ -566,7 +566,7 @@ impl CString {
566566
vec
567567
}
568568

569-
/// Equivalent to the [`CString::into_bytes`] function except that the
569+
/// Equivalent to [`CString::into_bytes()`] except that the
570570
/// returned vector includes the trailing nul terminator.
571571
///
572572
/// # Examples
@@ -605,7 +605,7 @@ impl CString {
605605
&self.inner[..self.inner.len() - 1]
606606
}
607607

608-
/// Equivalent to the [`CString::as_bytes`] function except that the
608+
/// Equivalent to [`CString::as_bytes()`] except that the
609609
/// returned slice includes the trailing nul terminator.
610610
///
611611
/// # Examples

0 commit comments

Comments
 (0)