From cf2da2655061c8c9b68e592c5ee30d6221c353cb Mon Sep 17 00:00:00 2001 From: Chris McEvoy <12284065+chrisimcevoy@users.noreply.github.com> Date: Sat, 18 Oct 2025 23:20:13 +0100 Subject: [PATCH] Fix typo in linked list length calculation comment Corrected a typo in the comment regarding non-tail recursion. --- 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 68ae7bd88d..7a33a246e4 100644 --- a/src/custom_types/enum/testcase_linked_list.md +++ b/src/custom_types/enum/testcase_linked_list.md @@ -38,7 +38,7 @@ impl List { match *self { // Can't take ownership of the tail, because `self` is borrowed; // instead take a reference to the tail - // And it'a a non-tail recursive call which may cause stack overflow for long lists. + // And it's a non-tail recursive call which may cause stack overflow for long lists. Cons(_, ref tail) => 1 + tail.len(), // Base Case: An empty list has zero length Nil => 0