Skip to content

Commit ded066f

Browse files
committed
Clarify documentation of can_dereference with write permissions
1 parent 3bb48f0 commit ded066f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ub_checks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub use predicates::*;
192192
#[cfg(not(kani))]
193193
mod predicates {
194194
/// Checks if a pointer can be dereferenced, ensuring:
195-
/// * `src` is valid for reads (see [`crate::ptr`] documentation).
195+
/// * `src` is valid for reads and writes (see [`crate::ptr`] documentation).
196196
/// * `src` is properly aligned (use `read_unaligned` if not).
197197
/// * `src` points to a properly initialized value of type `T`.
198198
///

0 commit comments

Comments
 (0)