doc: fix syntax error and the format of printf

Fix syntax and correct the format of printf in MyFirstObjectWalk.txt Signed-off-by: Zoker <kaixuanguiqu@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Zoker committed Aug 28, 2021 at 09:02 UTC 469888e6a5aabacb18e7c9422a8a8fa4d380fba3
1 file changed +2 -2
Documentation/MyFirstObjectWalk.txt
+2 -2
@@ -727,7 +727,7 @@ help understand. In our case, that means we omit trees and blobs not directly
727 referenced by `HEAD` or `HEAD`'s history, because we begin the walk with only
728 `HEAD` in the `pending` list.)
729
730 -First, we'll need to `#include "list-objects-filter-options.h`" and set up the
730 +First, we'll need to `#include "list-objects-filter-options.h"` and set up the
731 `struct list_objects_filter_options` at the top of the function.
732
733 ----
@@ -815,7 +815,7 @@ Count all the objects within and modify the print statement:
815 while ((oid = oidset_iter_next(&oit)))
816 omitted_count++;
817
818 - printf("commits %d\nblobs %d\ntags %d\ntrees%d\nomitted %d\n",
818 + printf("commits %d\nblobs %d\ntags %d\ntrees %d\nomitted %d\n",
819 commit_count, blob_count, tag_count, tree_count, omitted_count);
820 ----
821