Skip to content

Commit 00f3b80

Browse files
committed
Enums: Linked-List Needs Re-Wording
https://doc.rust-lang.org/rust-by-example/custom_types/enum/testcase_linked_list.html I had a colleague ask me a question by being confused with the first sentence in this chapter: > A common use for enums is to create a linked-list: IMO, this should be the other way around. A common way to implement Linked-Lists is to use enums. But I find it not aligned with my experience that a common use of enums are to create linked lists.
1 parent 27f1ff5 commit 00f3b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/enum/testcase_linked_list.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Testcase: linked-list
22

3-
A common use for `enums` is to create a linked-list:
3+
A common way to implement a linked-list is via `enums`:
44

55
```rust,editable
66
use crate::List::*;

0 commit comments

Comments
 (0)