1
Fork 0

Rollup merge of #95461 - nyurik:spelling, r=lcnr

Spellchecking some comments

This PR attempts to clean up some minor spelling mistakes in comments
This commit is contained in:
Dylan DPC 2022-03-30 09:10:07 +02:00 committed by GitHub
commit 03b3993ae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 61 additions and 61 deletions

View file

@ -1118,7 +1118,7 @@ pub type BinOp = Spanned<BinOpKind>;
#[derive(Copy, Clone, PartialEq, Encodable, Debug, HashStable_Generic)]
pub enum UnOp {
/// The `*` operator (deferencing).
/// The `*` operator (dereferencing).
Deref,
/// The `!` operator (logical negation).
Not,
@ -1611,7 +1611,7 @@ impl Expr<'_> {
| ExprKind::Index(base, _)
| ExprKind::AddrOf(.., base)
| ExprKind::Cast(base, _) => {
// This isn't exactly true for `Index` and all `Unnary`, but we are using this
// This isn't exactly true for `Index` and all `Unary`, but we are using this
// method exclusively for diagnostics and there's a *cultural* pressure against
// them being used only for its side-effects.
base.can_have_side_effects()