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 5, 2021
1 parent 7fbc053 commit a568e59
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 @@ -252,7 +252,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 a568e59

Please sign in to comment.