Skip to content

Commit cf2da26

Browse files
authored
Fix typo in linked list length calculation comment
Corrected a typo in the comment regarding non-tail recursion.
1 parent 2c9b490 commit cf2da26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/enum/testcase_linked_list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl List {
3838
match *self {
3939
// Can't take ownership of the tail, because `self` is borrowed;
4040
// instead take a reference to the tail
41-
// And it'a a non-tail recursive call which may cause stack overflow for long lists.
41+
// And it's a non-tail recursive call which may cause stack overflow for long lists.
4242
Cons(_, ref tail) => 1 + tail.len(),
4343
// Base Case: An empty list has zero length
4444
Nil => 0

0 commit comments

Comments
 (0)