Skip to content

Commit 97a51a1

Browse files
committed
Slightly clarify the superset relation of CanUpcast
1 parent 910a3b9 commit 97a51a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/blog/2025-07-30-extensible-datatypes-part-4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ In this way, we represent the enum's variants as a nested sum, with `Void` as th
408408

409409
## `CanUpcast` Implementation
410410

411-
With `HasFields` implemented, we are ready to define the `CanUpcast` trait. This trait allows an enum to be upcast to another enum that includes a subset of its variants:
411+
With `HasFields` implemented, we are ready to define the `CanUpcast` trait. This trait allows a source enum to be upcast to a target enum that is a superset of the source:
412412

413413
```rust
414414
pub trait CanUpcast<Target> {

0 commit comments

Comments
 (0)