Skip to content

Commit

Permalink
Change formatting of safety comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Feb 26, 2021
1 parent 12d6238 commit d4fd853
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions library/core/src/str/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1282,9 +1282,7 @@ impl<'a> SplitAsciiWhitespace<'a> {
return "";
}

// Safety:
//
// Slice is created from str.
// SAFETY: Slice is created from str.
unsafe { crate::str::from_utf8_unchecked(&self.inner.iter.iter.v) }
}
}
Expand Down

0 comments on commit d4fd853

Please sign in to comment.