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 18
18
//! * A [null] pointer is *never* valid, not even for accesses of [size zero][zst].
19
19
//! * All pointers (except for the null pointer) are valid for all operations of
20
20
//! [size zero][zst].
21
- //! * For a pointer to be valid, it is necessary ( but not always sufficient) that the pointer
21
+ //! * For a pointer to be valid, it is necessary, but not always sufficient, that the pointer
22
22
//! be *dereferencable*: the memory range of the given size starting at the pointer must all be
23
23
//! within the bounds of a single allocated object. Note that in Rust,
24
24
//! every (stack-allocated) variable is considered a separate allocated object.
@@ -253,7 +253,7 @@ pub fn slice_from_raw_parts<T>(data: *const T, len: usize) -> *const [T] {
253
253
}
254
254
255
255
/// Performs the same functionality as [`slice_from_raw_parts`], except that a
256
- /// raw mutable slice is returned.
256
+ /// raw mutable slice is returned, as opposed to a raw immutable slice .
257
257
///
258
258
/// See the documentation of [`slice_from_raw_parts`] for more details.
259
259
///
You can’t perform that action at this time.
0 commit comments