Skip to content

Commit

Permalink
Fix mistake in Self.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jul 25, 2024
1 parent 94cce75 commit 30d7bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ trait Add<Rhs = Self> {
struct NonEmptyList<T> {
head: T,
// A struct can reference itself (as long as it is not infinitely recursive).
tail: Option<Box<NonEmptyList<T>>>,
tail: Option<Box<Self>>,
}
```

Expand Down

0 comments on commit 30d7bfc

Please sign in to comment.