Skip to content

Commit a568e59

Browse files
committed
Fix mistake in Self.
1 parent 7fbc053 commit a568e59

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
@@ -252,7 +252,7 @@ trait Add<Rhs = Self> {
252252
struct NonEmptyList<T> {
253253
head: T,
254254
// A struct can reference itself (as long as it is not infinitely recursive).
255-
tail: Option<Box<NonEmptyList<T>>>,
255+
tail: Option<Box<Self>>,
256256
}
257257
```
258258

0 commit comments

Comments
 (0)