Skip to content

Commit 11a48a0

Browse files
RalfJungCentril
andauthored
Apply suggestions from code review
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent b1d0a68 commit 11a48a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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
///

0 commit comments

Comments
 (0)