Skip to content

Commit 469888e

Browse files
kesingitster
authored andcommitted
doc: fix syntax error and the format of printf
Fix syntax and correct the format of printf in MyFirstObjectWalk.txt Signed-off-by: Zoker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 15d9f3d commit 469888e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/MyFirstObjectWalk.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ help understand. In our case, that means we omit trees and blobs not directly
727727
referenced by `HEAD` or `HEAD`'s history, because we begin the walk with only
728728
`HEAD` in the `pending` list.)
729729

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
731731
`struct list_objects_filter_options` at the top of the function.
732732

733733
----
@@ -815,7 +815,7 @@ Count all the objects within and modify the print statement:
815815
while ((oid = oidset_iter_next(&oit)))
816816
omitted_count++;
817817

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",
819819
commit_count, blob_count, tag_count, tree_count, omitted_count);
820820
----
821821

0 commit comments

Comments
 (0)