File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ impl CStr8 {
103103 ///
104104 /// # Safety
105105 ///
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
107107 /// null-terminated string, with no interior null bytes.
108108 pub unsafe fn from_bytes_with_nul_unchecked ( chars : & [ u8 ] ) -> & Self {
109109 & * ( chars as * const [ u8 ] as * const Self )
@@ -185,7 +185,7 @@ impl CStr16 {
185185 /// # Safety
186186 ///
187187 /// 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
189189 /// a valid string, in accessible memory.
190190 pub unsafe fn from_ptr < ' ptr > ( ptr : * const Char16 ) -> & ' ptr Self {
191191 let mut len = 0 ;
@@ -223,7 +223,7 @@ impl CStr16 {
223223 ///
224224 /// # Safety
225225 ///
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
227227 /// null-terminated string, with no interior null bytes.
228228 pub unsafe fn from_u16_with_nul_unchecked ( codes : & [ u16 ] ) -> & Self {
229229 & * ( codes as * const [ u16 ] as * const Self )
You can’t perform that action at this time.
0 commit comments