File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -774,8 +774,8 @@ pub unsafe fn write_unaligned<T>(dst: *mut T, src: T) {
774
774
/// to not be elided or reordered by the compiler across other volatile
775
775
/// operations.
776
776
///
777
- /// Memory read with `read_volatile` should almost always be written to using
778
- /// [`write_volatile`] .
777
+ /// Memory accessed with `read_volatile` or [`write_volatile`] should not be
778
+ /// accessed with non-volatile operations .
779
779
///
780
780
/// [`write_volatile`]: ./fn.write_volatile.html
781
781
///
@@ -844,8 +844,8 @@ pub unsafe fn read_volatile<T>(src: *const T) -> T {
844
844
/// to not be elided or reordered by the compiler across other volatile
845
845
/// operations.
846
846
///
847
- /// Memory written with ` write_volatile` should almost always be read from using
848
- /// [`read_volatile`] .
847
+ /// Memory accessed with [`read_volatile`] or ` write_volatile` should not be
848
+ /// accessed with non-volatile operations .
849
849
///
850
850
/// `write_volatile` does not drop the contents of `dst`. This is safe, but it
851
851
/// could leak allocations or resources, so care should be taken not to overwrite
You can’t perform that action at this time.
0 commit comments