Skip to content

Commit

Permalink
Fix typos in CStr docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Feb 22, 2015
1 parent dcc6ce2 commit c5a3cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/ffi/c_str.rs
Expand Up @@ -224,7 +224,7 @@ impl CString {
/// Returns the contents of this `CString` as a slice of bytes.
///
/// The returned slice does **not** contain the trailing nul separator and
/// it is guaranteet to not have any interior nul bytes.
/// it is guaranteed to not have any interior nul bytes.
pub fn as_bytes(&self) -> &[u8] {
&self.inner[..self.inner.len() - 1]
}
Expand Down Expand Up @@ -333,7 +333,7 @@ impl CStr {
/// Return the inner pointer to this C string.
///
/// The returned pointer will be valid for as long as `self` is and points
/// to a continguous region of memory terminated with a 0 byte to represent
/// to a contiguous region of memory terminated with a 0 byte to represent
/// the end of the string.
pub fn as_ptr(&self) -> *const libc::c_char {
self.inner.as_ptr()
Expand Down

0 comments on commit c5a3cbb

Please sign in to comment.