@@ -5214,12 +5214,12 @@ pub unsafe trait IntoBytes {
52145214 /// ```
52155215 /// # use zerocopy::IntoBytes;
52165216 /// # let header = u128::MAX;
5217- /// let mut insufficent_bytes = &mut [0, 0][..];
5217+ /// let mut insufficient_bytes = &mut [0, 0][..];
52185218 ///
5219- /// let write_result = header.write_to_suffix(insufficent_bytes );
5219+ /// let write_result = header.write_to_suffix(insufficient_bytes );
52205220 ///
52215221 /// assert!(write_result.is_err());
5222- /// assert_eq!(insufficent_bytes , [0, 0]);
5222+ /// assert_eq!(insufficient_bytes , [0, 0]);
52235223 /// ```
52245224 #[ must_use = "callers should check the return value to see if the operation succeeded" ]
52255225 #[ inline]
@@ -5276,12 +5276,12 @@ pub unsafe trait IntoBytes {
52765276 ///
52775277 /// assert_eq!(bytes, [0, 0, 0, 1, 2, 3, 4, 5, 6, 7]);
52785278 ///
5279- /// let mut insufficent_bytes = &mut [0, 0][..];
5279+ /// let mut insufficient_bytes = &mut [0, 0][..];
52805280 ///
5281- /// let write_result = header.write_to_suffix(insufficent_bytes );
5281+ /// let write_result = header.write_to_suffix(insufficient_bytes );
52825282 ///
52835283 /// assert!(write_result.is_err());
5284- /// assert_eq!(insufficent_bytes , [0, 0]);
5284+ /// assert_eq!(insufficient_bytes , [0, 0]);
52855285 /// ```
52865286 ///
52875287 /// If insufficient target bytes are provided, `write_to_suffix` returns
@@ -5290,12 +5290,12 @@ pub unsafe trait IntoBytes {
52905290 /// ```
52915291 /// # use zerocopy::IntoBytes;
52925292 /// # let header = u128::MAX;
5293- /// let mut insufficent_bytes = &mut [0, 0][..];
5293+ /// let mut insufficient_bytes = &mut [0, 0][..];
52945294 ///
5295- /// let write_result = header.write_to_suffix(insufficent_bytes );
5295+ /// let write_result = header.write_to_suffix(insufficient_bytes );
52965296 ///
52975297 /// assert!(write_result.is_err());
5298- /// assert_eq!(insufficent_bytes , [0, 0]);
5298+ /// assert_eq!(insufficient_bytes , [0, 0]);
52995299 /// ```
53005300 #[ must_use = "callers should check the return value to see if the operation succeeded" ]
53015301 #[ inline]
@@ -5355,7 +5355,7 @@ pub unsafe trait IntoBytes {
53555355 /// ```
53565356 ///
53575357 /// If the write fails, `write_to_io` returns `Err` and a partial write may
5358- /// have occured ; e.g.:
5358+ /// have occurred ; e.g.:
53595359 ///
53605360 /// ```
53615361 /// # use zerocopy::IntoBytes;
@@ -5559,7 +5559,7 @@ pub unsafe trait Unaligned {
55595559/// The standard library's [`derive(Hash)`][derive@Hash] produces hashes by
55605560/// individually hashing each field and combining the results. Instead, the
55615561/// implementations of [`Hash::hash()`] and [`Hash::hash_slice()`] generated by
5562- /// `derive(ByteHash)` convert the entirey of `self` to a byte slice and hashes
5562+ /// `derive(ByteHash)` convert the entirety of `self` to a byte slice and hashes
55635563/// it in a single call to [`Hasher::write()`]. This may have performance
55645564/// advantages.
55655565///
@@ -5597,7 +5597,7 @@ pub use zerocopy_derive::ByteHash;
55975597///
55985598/// The standard library's [`derive(Eq, PartialEq)`][derive@PartialEq] computes
55995599/// equality by individually comparing each field. Instead, the implementation
5600- /// of [`PartialEq::eq`] emitted by `derive(ByteHash)` converts the entirey of
5600+ /// of [`PartialEq::eq`] emitted by `derive(ByteHash)` converts the entirety of
56015601/// `self` and `other` to byte slices and compares those slices for equality.
56025602/// This may have performance advantages.
56035603#[ cfg( any( feature = "derive" , test) ) ]
0 commit comments