]> git.ipfire.org Git - thirdparty/git.git/commitdiff
notes.h: fix typos in comment
authorDenton Liu <liu.denton@gmail.com>
Wed, 18 Dec 2019 18:17:43 +0000 (10:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2019 20:35:35 +0000 (12:35 -0800)
In 1d7297513d (notes: break set_display_notes() into smaller functions,
2019-12-11), we introduced a comment which had a couple of typos. In the
first typo, we referenced 'enable_default_display_notes' instead of
'enable_ref_display_notes'. In the second typo, we wrote "is a points to"
instead of "is a pointer to". Correct both of these typos.

Reported-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.h

diff --git a/notes.h b/notes.h
index 3e784481815c4d67740329ecb3ee91aafda24a9c..bbab1961caf12b13bfa40ef347d7b9b3687d18c1 100644 (file)
--- a/notes.h
+++ b/notes.h
@@ -268,11 +268,11 @@ void init_display_notes(struct display_notes_opt *opt);
 /*
  * This family of functions enables or disables the display of notes. In
  * particular, 'enable_default_display_notes' will display the default notes,
- * 'enable_default_display_notes' will display the notes ref 'ref' and
+ * 'enable_ref_display_notes' will display the notes ref 'ref' and
  * 'disable_display_notes' will disable notes, including those added by previous
  * invocations of the 'enable_*_display_notes' functions.
  *
- * 'show_notes' is a points to a boolean which will be set to 1 if notes are
+ * 'show_notes' is a pointer to a boolean which will be set to 1 if notes are
  * displayed, else 0. It must not be NULL.
  */
 void enable_default_display_notes(struct display_notes_opt *opt, int *show_notes);