@@ -114,7 +114,7 @@ impl<T: Sized> NonNull<T> {
114
114
///
115
115
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
116
116
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
117
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
117
+ /// In particular, while this reference exists , the memory the pointer points to must
118
118
/// not get mutated (except inside `UnsafeCell`).
119
119
///
120
120
/// This applies even if the result of this method is unused!
@@ -148,7 +148,7 @@ impl<T: Sized> NonNull<T> {
148
148
///
149
149
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
150
150
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
151
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
151
+ /// In particular, while this reference exists , the memory the pointer points to must
152
152
/// not get accessed (read or written) through any other pointer.
153
153
///
154
154
/// This applies even if the result of this method is unused!
@@ -350,7 +350,7 @@ impl<T: ?Sized> NonNull<T> {
350
350
///
351
351
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
352
352
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
353
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
353
+ /// In particular, while this reference exists , the memory the pointer points to must
354
354
/// not get mutated (except inside `UnsafeCell`).
355
355
///
356
356
/// This applies even if the result of this method is unused!
@@ -400,7 +400,7 @@ impl<T: ?Sized> NonNull<T> {
400
400
///
401
401
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
402
402
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
403
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
403
+ /// In particular, while this reference exists , the memory the pointer points to must
404
404
/// not get accessed (read or written) through any other pointer.
405
405
///
406
406
/// This applies even if the result of this method is unused!
@@ -580,7 +580,7 @@ impl<T> NonNull<[T]> {
580
580
///
581
581
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
582
582
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
583
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
583
+ /// In particular, while this reference exists , the memory the pointer points to must
584
584
/// not get mutated (except inside `UnsafeCell`).
585
585
///
586
586
/// This applies even if the result of this method is unused!
@@ -626,7 +626,7 @@ impl<T> NonNull<[T]> {
626
626
///
627
627
/// * You must enforce Rust's aliasing rules, since the returned lifetime `'a` is
628
628
/// arbitrarily chosen and does not necessarily reflect the actual lifetime of the data.
629
- /// In particular, for the duration of this lifetime , the memory the pointer points to must
629
+ /// In particular, while this reference exists , the memory the pointer points to must
630
630
/// not get accessed (read or written) through any other pointer.
631
631
///
632
632
/// This applies even if the result of this method is unused!
0 commit comments