Skip to content

Commit 63dccc0

Browse files
committed
Fix lint
1 parent b6e15e7 commit 63dccc0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/from_bytes.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ pub unsafe trait FromBytes<T> {
1818
///
1919
/// # Safety
2020
///
21-
/// <TODO>
21+
/// The caller must ensure that `bytes` contains a valid representation of
22+
/// the implementing type.
2223
unsafe fn from_bytes_unchecked(bytes: &[u8]) -> T;
2324
}
2425

src/types/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<const MAX_SIZE: usize> Str<MAX_SIZE> {
2626

2727
/// Tries to convert to a `&str` if it is valid UTF-8.
2828
///
29-
/// Behaves like [`core::from_utf8`].
29+
/// Behaves like [`core::str::from_utf8`].
3030
#[inline]
3131
pub fn as_str(&self) -> Result<&str, TranslationError> {
3232
let end_index = self

0 commit comments

Comments
 (0)