Skip to content

Commit

Permalink
always shout about SAFETY
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic authored and daniel-abramov committed Dec 17, 2024
1 parent 9f52eda commit 6505e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocol/frame/utf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl Utf8Bytes {
/// Returns as a string slice.
#[inline]
pub fn as_str(&self) -> &str {
// safety: is valid uft8
// SAFETY: is valid uft8
unsafe { str::from_utf8_unchecked(&self.0) }
}
}
Expand Down

0 comments on commit 6505e51

Please sign in to comment.