summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-02-15 15:47:28 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-02-15 16:01:25 -0500
commit7efddeb7376b3e10379ea662c9a235ae079119d7 (patch)
tree83f3dbcd42dbe16412e53c62a9078a6111009105 /examples
parent935f85131fa106730bbf66d49808b5aca375f729 (diff)
downloadlibgit2-7efddeb7376b3e10379ea662c9a235ae079119d7.tar.gz
Fix some typos
Diffstat (limited to 'examples')
-rw-r--r--examples/checkout.c2
-rw-r--r--examples/common.h2
-rw-r--r--examples/tag.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/checkout.c b/examples/checkout.c
index 204b58d88..ac7b7422d 100644
--- a/examples/checkout.c
+++ b/examples/checkout.c
@@ -14,7 +14,7 @@
#include "common.h"
-/* Define the printf format specifer to use for size_t output */
+/* Define the printf format specifier to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
# define PRIxZ "Ix"
diff --git a/examples/common.h b/examples/common.h
index 0126568ab..f86e92c35 100644
--- a/examples/common.h
+++ b/examples/common.h
@@ -36,7 +36,7 @@
#endif
#ifndef PRIuZ
-/* Define the printf format specifer to use for size_t output */
+/* Define the printf format specifier to use for size_t output */
#if defined(_MSC_VER) || defined(__MINGW32__)
# define PRIuZ "Iu"
#else
diff --git a/examples/tag.c b/examples/tag.c
index 03d9c2bf9..e4f71ae62 100644
--- a/examples/tag.c
+++ b/examples/tag.c
@@ -188,7 +188,7 @@ static void action_delete_tag(tag_state *state)
git_object_free(obj);
}
-static void action_create_lighweight_tag(tag_state *state)
+static void action_create_lightweight_tag(tag_state *state)
{
git_repository *repo = state->repo;
struct tag_options *opts = state->opts;
@@ -260,7 +260,7 @@ static void parse_options(tag_action *action, struct tag_options *opts, int argc
print_usage();
if (*action != &action_create_tag)
- *action = &action_create_lighweight_tag;
+ *action = &action_create_lightweight_tag;
} else if (!strcmp(curr, "-n")) {
opts->num_lines = 1;
*action = &action_list_tags;