Skip to content

Commit bb0e32f

Browse files
Fix mistake in Self.
1 parent f565ed2 commit bb0e32f

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)