File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1818//! * A [null] pointer is *never* valid, not even for accesses of [size zero][zst].
1919//! * All pointers (except for the null pointer) are valid for all operations of
2020//! [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
2222//! be *dereferencable*: the memory range of the given size starting at the pointer must all be
2323//! within the bounds of a single allocated object. Note that in Rust,
2424//! 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] {
253253}
254254
255255/// 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 .
257257///
258258/// See the documentation of [`slice_from_raw_parts`] for more details.
259259///
You can’t perform that action at this time.
0 commit comments