about summary refs log tree commit diff
path: root/compiler/rustc_ast/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2022-05-21 11:39:52 +0200
committerGitHub <noreply@github.com>2022-05-21 11:39:52 +0200
commit85dfd065b1b691a4b2bfb2287c9ec55921c3fd43 (patch)
treeb289875a6e8de82794af3c9972d7a6da65eedd0d /compiler/rustc_ast/src
parent54e36ef1b38f7182fe361bb1083e940e9a575242 (diff)
parentbb8a1205c642cd3241b9a5fd09feeb4820b6ca43 (diff)
downloadrust-85dfd065b1b691a4b2bfb2287c9ec55921c3fd43.tar.gz
rust-85dfd065b1b691a4b2bfb2287c9ec55921c3fd43.zip
Rollup merge of #97232 - tshepang:typo, r=Dylan-DPC
typo
Diffstat (limited to 'compiler/rustc_ast/src')
-rw-r--r--compiler/rustc_ast/src/ptr.rs2
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