File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ impl CStr8 {
103
103
///
104
104
/// # Safety
105
105
///
106
- /// It's the callers responsability to ensure chars is a valid Latin-1
106
+ /// It's the callers responsibility to ensure chars is a valid Latin-1
107
107
/// null-terminated string, with no interior null bytes.
108
108
pub unsafe fn from_bytes_with_nul_unchecked ( chars : & [ u8 ] ) -> & Self {
109
109
& * ( chars as * const [ u8 ] as * const Self )
@@ -185,7 +185,7 @@ impl CStr16 {
185
185
/// # Safety
186
186
///
187
187
/// The function will start accessing memory from `ptr` until the first
188
- /// null byte. It's the callers responsability to ensure `ptr` points to
188
+ /// null byte. It's the callers responsibility to ensure `ptr` points to
189
189
/// a valid string, in accessible memory.
190
190
pub unsafe fn from_ptr < ' ptr > ( ptr : * const Char16 ) -> & ' ptr Self {
191
191
let mut len = 0 ;
@@ -223,7 +223,7 @@ impl CStr16 {
223
223
///
224
224
/// # Safety
225
225
///
226
- /// It's the callers responsability to ensure chars is a valid UCS-2
226
+ /// It's the callers responsibility to ensure chars is a valid UCS-2
227
227
/// null-terminated string, with no interior null bytes.
228
228
pub unsafe fn from_u16_with_nul_unchecked ( codes : & [ u16 ] ) -> & Self {
229
229
& * ( codes as * const [ u16 ] as * const Self )
You can’t perform that action at this time.
0 commit comments