Skip to content

Commit

Permalink
Fix mistake in Self.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger0202 committed Jul 25, 2024
1 parent f565ed2 commit bb0e32f
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 bb0e32f

Please sign in to comment.