docs: fix places that break compilation in MyFirstObjectWalk

Two errors in the example code caused compilation failures due to a missing semicolon as well as initialization with an empty struct. This commit fixes that to make the MyFirstObjectWalk tutorial easier to follow. Signed-off-by: John Cai <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

John Cai committed Oct 29, 2021 at 19:52 UTC f0ac30ec190284627f9bd3d0681823bcdc79dcf2
1 file changed +2 -2
Documentation/MyFirstObjectWalk.txt
+2 -2
@@ -65,7 +65,7 @@ int cmd_walken(int argc, const char **argv, const char *prefix)
65 const char * const walken_usage[] = {
66 N_("git walken"),
67 NULL,
68 - }
68 + };
69 struct option options[] = {
70 OPT_END()
71 };
@@ -697,7 +697,7 @@ First, we'll need to `#include "list-objects-filter-options.h"` and set up the
697 ----
698 static void walken_object_walk(struct rev_info *rev)
699 {
700 - struct list_objects_filter_options filter_options = {};
700 + struct list_objects_filter_options filter_options = { 0 };
701
702 ...
703 ----