Apply suggestions from code review

Co-authored-by: Joshua Nelson <joshua@yottadb.com>
This commit is contained in:
Poliorcetics 2020-08-14 19:08:09 +02:00 committed by GitHub
parent 2adc8c0e5f
commit ee4f893e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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