{"thread":{"id":"56392","subject":"[PATCH] doc: fix syntax error and the format of printf","startedAt":"2021-08-28T09:02:17Z","lastAt":"2021-08-28T09:02:17Z","messageCount":1,"participants":["Zoker via GitGitGadget"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"434013","messageId":"pull.1029.git.1630141332149.gitgitgadget@gmail.com","threadId":"56392","inReplyTo":null,"subject":"[PATCH] doc: fix syntax error and the format of printf","fromName":"Zoker via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2021-08-28T09:02:12Z","receivedAt":"2021-08-28T09:02:17Z","isPatch":true,"sender":{"key":"name:Zoker","avatar":null},"body":"From: Zoker <kaixuanguiqu@gmail.com>\n\nFix syntax and correct the format of printf in MyFirstObjectWalk.txt\n\nSigned-off-by: Zoker <kaixuanguiqu@gmail.com>\n---\n    MyFirstObjectWalk: fix syntax error and the format of printf\n    \n    Fix the syntax of code hint and correct the format of printf in\n    MyFirstObjectWalk.txt\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-1029%2Fkesin%2Fcorrect-my-first-object-walk-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1029/kesin/correct-my-first-object-walk-v1\nPull-Request: https://github.com/gitgitgadget/git/pull/1029\n\n Documentation/MyFirstObjectWalk.txt | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/MyFirstObjectWalk.txt b/Documentation/MyFirstObjectWalk.txt\nindex 2d10eea7a9f..45eb84d8b48 100644\n--- a/Documentation/MyFirstObjectWalk.txt\n+++ b/Documentation/MyFirstObjectWalk.txt\n@@ -691,7 +691,7 @@ help understand. In our case, that means we omit trees and blobs not directly\n referenced by `HEAD` or `HEAD`'s history, because we begin the walk with only\n `HEAD` in the `pending` list.)\n \n-First, we'll need to `#include \"list-objects-filter-options.h`\" and set up the\n+First, we'll need to `#include \"list-objects-filter-options.h\"` and set up the\n `struct list_objects_filter_options` at the top of the function.\n \n ----\n@@ -779,7 +779,7 @@ Count all the objects within and modify the print statement:\n \twhile ((oid = oidset_iter_next(&oit)))\n \t\tomitted_count++;\n \n-\tprintf(\"commits %d\\nblobs %d\\ntags %d\\ntrees%d\\nomitted %d\\n\",\n+\tprintf(\"commits %d\\nblobs %d\\ntags %d\\ntrees %d\\nomitted %d\\n\",\n \t\tcommit_count, blob_count, tag_count, tree_count, omitted_count);\n ----\n \n\nbase-commit: c4203212e360b25a1c69467b5a8437d45a373cac\n-- \ngitgitgadget\n"}]}