File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,15 @@ unsafe impl ReadableFromBytes for i32 {}
46
46
unsafe impl ReadableFromBytes for i64 { }
47
47
unsafe impl ReadableFromBytes for isize { }
48
48
49
- /// Specifies that a type can be safely writable to byte slices.
49
+ /// Specifies that a type is safely writable to byte slices.
50
50
///
51
- /// This means that we don't read undefined values when reading the memory contents (which leads to
52
- /// UB). It also ensures that no potentially sensitive information is leaked into the byte slices.
51
+ /// This means that we don't read undefined values (which leads to UB) in preparation for writing
52
+ /// to the byte slice. It also ensures that no potentially sensitive information is leaked into the
53
+ /// byte slices.
53
54
///
54
55
/// # Safety
55
56
///
56
- /// A type must not include padding bytes and must be fully initialsed to safely implement
57
+ /// A type must not include padding bytes and must be fully initialised to safely implement
57
58
/// [`WritableToBytes`] (i.e., it doesn't contain [`MaybeUninit`] fields). A composition of
58
59
/// writable types in a structure is not necessarily writable because it may result in padding
59
60
/// bytes.
You can’t perform that action at this time.
0 commit comments