Skip to content

Commit b2c6aa2

Browse files
rklaehntwittner
andcommitted
Fix typo in docs
Co-Authored-By: Toralf Wittner <tw@dtex.org>
1 parent a30038c commit b2c6aa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/multiaddr/src/storage.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ impl Storage {
4545
}
4646
}
4747

48-
/// creates storage from a vec. For a size up to MAX_INLINE, this will not allocate.
48+
/// Creates storage from a slice.
49+
/// For a size up to MAX_INLINE, this will not allocate.
4950
pub fn from_slice(slice: &[u8]) -> Self {
5051
let len = slice.len();
5152
if len <= MAX_INLINE {

0 commit comments

Comments
 (0)