We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5caa5a commit bb8a120Copy full SHA for bb8a120
compiler/rustc_ast/src/ptr.rs
@@ -10,7 +10,7 @@
10
//!
11
//! * **Immutability**: `P<T>` disallows mutating its inner `T`, unlike `Box<T>`
12
//! (unless it contains an `Unsafe` interior, but that may be denied later).
13
-//! This mainly prevents mistakes, but can also enforces a kind of "purity".
+//! This mainly prevents mistakes, but also enforces a kind of "purity".
14
15
//! * **Efficiency**: folding can reuse allocation space for `P<T>` and `Vec<T>`,
16
//! the latter even when the input and output types differ (as it would be the
0 commit comments