Skip to content

Commit 49c2136

Browse files
committed
Fix use of nonstandard "casted"
1 parent ebdb258 commit 49c2136

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/expressions/operator-expr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ reference types and `mut` or `const` in pointer types.
549549
[^lessmut]: Only when `m₁` is `mut` or `m₂` is `const`. Casting `mut` reference/pointer to
550550
`const` pointer is allowed.
551551

552-
[^no-capture]: Only closures that do not capture (close over) any local variables can be casted to function pointers.
552+
[^no-capture]: Only closures that do not capture (close over) any local variables can be cast to function pointers.
553553

554554
### Semantics
555555

src/items/enumerations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ assert_eq!(2, Enum::Baz as isize);
241241
```
242242

243243
r[items.enum.discriminant.coercion.fieldless]
244-
[Field-less enums] can be casted if they do not have explicit discriminants, or where only unit variants are explicit.
244+
[Field-less enums] can be cast if they do not have explicit discriminants, or where only unit variants are explicit.
245245

246246
```rust
247247
enum Fieldless {

src/items/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ trait DynIncompatible {
173173
fn foo() {} // ERROR: associated function without Sized
174174
fn returns(&self) -> Self; // ERROR: Self in return type
175175
fn typed<T>(&self, x: T) {} // ERROR: has generic type parameters
176-
fn nested(self: Rc<Box<Self>>) {} // ERROR: nested receiver cannot be downcasted
176+
fn nested(self: Rc<Box<Self>>) {} // ERROR: nested receiver cannot be dispatched on
177177
}
178178
179179
struct S;

0 commit comments

Comments
 (0)