File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const OWN_FLAG: usize = !LEN_MASK;
40
40
impl < ' a > MownStr < ' a > {
41
41
pub const fn from_str ( other : & ' a str ) -> MownStr < ' a > {
42
42
assert ! ( other. len( ) <= LEN_MASK ) ;
43
- // NB: The only 'const' constuctor for NonNull is new_unchecked
43
+ // NB: The only 'const' constructor for NonNull is new_unchecked
44
44
// so we need an unsafe block.
45
45
46
46
// SAFETY: we need a *mut u8 for new_unchecked,
@@ -477,7 +477,7 @@ mod test {
477
477
#[ test]
478
478
fn no_memory_leak ( ) {
479
479
// performs several MownStr allocation in sequence,
480
- // droping each one before allocating the next one
480
+ // dropping each one before allocating the next one
481
481
// (unless the v.pop() line below is commented out).
482
482
//
483
483
// If there is no memory leak,
You can’t perform that action at this time.
0 commit comments