Skip to content

Commit bd49581

Browse files
authored
Fix typos in core::ptr docs
1 parent df20355 commit bd49581

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: library/core/src/ptr/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
//! have to change, and is it worse or better now? Would any patterns become truly inexpressible?
8585
//! Could we carve out special exceptions for those patterns? Should we?
8686
//!
87-
//! A secondary goal of this project is to see if we can disamiguate the many functions of
87+
//! A secondary goal of this project is to see if we can disambiguate the many functions of
8888
//! pointer<->integer casts enough for the definition of `usize` to be loosened so that it
8989
//! isn't *pointer*-sized but address-space/offset/allocation-sized (we'll probably continue
9090
//! to conflate these notions). This would potentially make it possible to more efficiently
@@ -163,7 +163,7 @@
163163
//! of pointers and `usize` (and `isize`), and defining a pointer to semantically contain the
164164
//! following information:
165165
//!
166-
//! * The **address-space** it is part of (i.e. "data" vs "code" in WASM).
166+
//! * The **address-space** it is part of (e.g. "data" vs "code" in WASM).
167167
//! * The **address** it points to, which can be represented by a `usize`.
168168
//! * The **provenance** it has, defining the memory it has permission to access.
169169
//!
@@ -246,7 +246,7 @@
246246
//! be using AtomicPtr instead. If that messes up the way you atomically manipulate pointers,
247247
//! we would like to know why, and what needs to be done to fix it.)
248248
//!
249-
//! Something more complicated and just generally *evil* like a XOR-List requires more significant
249+
//! Something more complicated and just generally *evil* like an XOR-List requires more significant
250250
//! changes like allocating all nodes in a pre-allocated Vec or Arena and using a pointer
251251
//! to the whole allocation to reconstitute the XORed addresses.
252252
//!
@@ -257,7 +257,7 @@
257257
//! special attention at all, because they're generally accessing memory outside the scope of
258258
//! "the abstract machine", or already using "I know what I'm doing" annotations like "volatile".
259259
//!
260-
//! Under [Strict Provenance] is is Undefined Behaviour to:
260+
//! Under [Strict Provenance] it is Undefined Behaviour to:
261261
//!
262262
//! * Access memory through a pointer that does not have provenance over that memory.
263263
//!

0 commit comments

Comments
 (0)