Skip to content

Commit b892e44

Browse files
committed
Fix erratum in part10
1 parent a182bb7 commit b892e44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_parts/part10.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ with a new recursive function that takes any node, then prints it and its childr
377377
+ child = *internal_node_child(node, i);
378378
+ print_tree(pager, child, indentation_level + 1);
379379
+
380-
+ indent(indentation_level);
380+
+ indent(indentation_level + 1);
381381
+ printf("- key %d\n", *internal_node_key(node, i));
382382
+ }
383383
+ child = *internal_node_right_child(node);
@@ -420,7 +420,7 @@ Here's a test case for the new printing functionality!
420420
+ " - 5",
421421
+ " - 6",
422422
+ " - 7",
423-
+ "- key 7",
423+
+ " - key 7",
424424
+ " - leaf (size 7)",
425425
+ " - 8",
426426
+ " - 9",

0 commit comments

Comments
 (0)