From 00f3b8040331d4e5cbeba14511f8f29161f89b87 Mon Sep 17 00:00:00 2001 From: Christoph Siedentop <commits@siedentop.name> Date: Wed, 27 Oct 2021 11:12:53 +0200 Subject: [PATCH] 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. --- src/custom_types/enum/testcase_linked_list.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom_types/enum/testcase_linked_list.md b/src/custom_types/enum/testcase_linked_list.md index b07adecf6b..cd4e3e6202 100644 --- a/src/custom_types/enum/testcase_linked_list.md +++ b/src/custom_types/enum/testcase_linked_list.md @@ -1,6 +1,6 @@ # Testcase: linked-list -A common use for `enums` is to create a linked-list: +A common way to implement a linked-list is via `enums`: ```rust,editable use crate::List::*;