File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1991,7 +1991,7 @@ impl<F: FnPtr> fmt::Debug for F {
1991
1991
///
1992
1992
/// The `expr` in `addr_of!(expr)` is evaluated as a place expression, but never loads
1993
1993
/// from the place or requires the place to be dereferenceable. This means that
1994
- /// `addr_of!(*ptr)` is defined behavior even if `ptr` is dangling or misaligned.
1994
+ /// `addr_of!(*ptr)` is defined behavior even if `ptr` is null, dangling, or misaligned.
1995
1995
/// Note however that `addr_of!((*ptr).field)` still requires the projection to
1996
1996
/// `field` to be in-bounds, using the same rules as [`offset`].
1997
1997
///
@@ -2040,7 +2040,7 @@ pub macro addr_of($place:expr) {
2040
2040
///
2041
2041
/// The `expr` in `addr_of_mut!(expr)` is evaluated as a place expression, but never loads
2042
2042
/// from the place or requires the place to be dereferenceable. This means that
2043
- /// `addr_of_mut!(*ptr)` is defined behavior even if `ptr` is dangling or misaligned.
2043
+ /// `addr_of_mut!(*ptr)` is defined behavior even if `ptr` is null, dangling, or misaligned.
2044
2044
/// Note however that `addr_of_mut!((*ptr).field)` still requires the projection to
2045
2045
/// `field` to be in-bounds, using the same rules as [`offset`].
2046
2046
///
You can’t perform that action at this time.
0 commit comments