Skip to content

Commit 30d7bfc

Browse files
committed
Fix mistake in Self.
1 parent 94cce75 commit 30d7bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paths.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ trait Add<Rhs = Self> {
267267
struct NonEmptyList<T> {
268268
head: T,
269269
// A struct can reference itself (as long as it is not infinitely recursive).
270-
tail: Option<Box<NonEmptyList<T>>>,
270+
tail: Option<Box<Self>>,
271271
}
272272
```
273273

0 commit comments

Comments
 (0)