diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2022-05-20 22:02:20 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2022-05-20 22:02:20 +0200 |
| commit | bb8a1205c642cd3241b9a5fd09feeb4820b6ca43 (patch) | |
| tree | 044464378fa8ad9757b6757f0b91532413d6892b /compiler | |
| parent | b5caa5a8421f84cb7664f999b7635801bcf3f96a (diff) | |
| download | rust-bb8a1205c642cd3241b9a5fd09feeb4820b6ca43.tar.gz rust-bb8a1205c642cd3241b9a5fd09feeb4820b6ca43.zip | |
typo
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_ast/src/ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/ptr.rs b/compiler/rustc_ast/src/ptr.rs index 89a0857992e..bab85a3019d 100644 --- a/compiler/rustc_ast/src/ptr.rs +++ b/compiler/rustc_ast/src/ptr.rs @@ -10,7 +10,7 @@ //! //! * **Immutability**: `P<T>` disallows mutating its inner `T`, unlike `Box<T>` //! (unless it contains an `Unsafe` interior, but that may be denied later). -//! This mainly prevents mistakes, but can also enforces a kind of "purity". +//! This mainly prevents mistakes, but also enforces a kind of "purity". //! //! * **Efficiency**: folding can reuse allocation space for `P<T>` and `Vec<T>`, //! the latter even when the input and output types differ (as it would be the |
