]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: fix syntax error and the format of printf
authorZoker <kaixuanguiqu@gmail.com>
Sat, 28 Aug 2021 09:02:12 +0000 (09:02 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Aug 2021 16:30:32 +0000 (09:30 -0700)
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>
Documentation/MyFirstObjectWalk.txt

index 4d24daeb9feb1d4d61a850f8d4176807b76f8b45..9cc9f7804baed14f5e20474de70f56732b5fcff3 100644 (file)
@@ -727,7 +727,7 @@ help understand. In our case, that means we omit trees and blobs not directly
 referenced by `HEAD` or `HEAD`'s history, because we begin the walk with only
 `HEAD` in the `pending` list.)
 
-First, we'll need to `#include "list-objects-filter-options.h`" and set up the
+First, we'll need to `#include "list-objects-filter-options.h"` and set up the
 `struct list_objects_filter_options` at the top of the function.
 
 ----
@@ -815,7 +815,7 @@ Count all the objects within and modify the print statement:
        while ((oid = oidset_iter_next(&oit)))
                omitted_count++;
 
-       printf("commits %d\nblobs %d\ntags %d\ntrees%d\nomitted %d\n",
+       printf("commits %d\nblobs %d\ntags %d\ntrees %d\nomitted %d\n",
                commit_count, blob_count, tag_count, tree_count, omitted_count);
 ----