diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-23 14:45:18 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-23 23:28:48 +0530 |
| commit | 8c1606b2d2e7b5bbaccc73f70989390c0c43b2ab (patch) | |
| tree | 35624af1f90c6ef53b12fce598c9af1048dbe17c /src/libstd | |
| parent | 2af91c4555477355e3824f8f8660d794021f6391 (diff) | |
| parent | c5a3cbb45ba162d24556fc1a091f8a2ac1ea6d76 (diff) | |
| download | rust-8c1606b2d2e7b5bbaccc73f70989390c0c43b2ab.tar.gz rust-8c1606b2d2e7b5bbaccc73f70989390c0c43b2ab.zip | |
Rollup merge of #22670 - shepmaster:c_str_typos, r=Manishearth
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/c_str.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 8976813d3f9..8900713974b 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -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] } @@ -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() |
