File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ impl CString {
224
224
/// Returns the contents of this `CString` as a slice of bytes.
225
225
///
226
226
/// The returned slice does **not** contain the trailing nul separator and
227
- /// it is guaranteet to not have any interior nul bytes.
227
+ /// it is guaranteed to not have any interior nul bytes.
228
228
pub fn as_bytes ( & self ) -> & [ u8 ] {
229
229
& self . inner [ ..self . inner . len ( ) - 1 ]
230
230
}
@@ -333,7 +333,7 @@ impl CStr {
333
333
/// Return the inner pointer to this C string.
334
334
///
335
335
/// The returned pointer will be valid for as long as `self` is and points
336
- /// to a continguous region of memory terminated with a 0 byte to represent
336
+ /// to a contiguous region of memory terminated with a 0 byte to represent
337
337
/// the end of the string.
338
338
pub fn as_ptr ( & self ) -> * const libc:: c_char {
339
339
self . inner . as_ptr ( )
You can’t perform that action at this time.
0 commit comments