From c3bcbda5c26b9234b6207b4c6fb85ab1565d9d0b Mon Sep 17 00:00:00 2001 From: jkrvivian Date: Tue, 16 Oct 2018 14:33:17 +0800 Subject: [PATCH] Fix typos --- include/cstack.h | 4 ++-- include/cstring.h | 2 +- include/markdown.h | 2 +- include/parser.h | 2 +- include/url.h | 2 +- include/viewer.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/cstack.h b/include/cstack.h index e762c90..18608f3 100644 --- a/include/cstack.h +++ b/include/cstack.h @@ -23,8 +23,8 @@ * * struct: cstack_t which defines char stack type in heap memory * - * function: cstack_init to intialize struct of type cstack_t - * function: cstack_t->push to add one char on top if the stack + * function: cstack_init to initialize struct of type cstack_t + * function: cstack_t->push to add one char on top of the stack * function: cstack_t->pop to remove the top char from the stack * function: cstack_t->top to test if the top char is a given char * function: cstack_t->empty to test if the stack is empty diff --git a/include/cstring.h b/include/cstring.h index 1940596..f0314fb 100644 --- a/include/cstring.h +++ b/include/cstring.h @@ -23,7 +23,7 @@ * * struct: cstring_t which defines a expandable c string type in heap memory * - * function: cstring_init to intialize struct of type cstring_t + * function: cstring_init to initialize struct of type cstring_t * function: cstring_t->expand to add one character to the struct * function: cstring_t->expand_arr to add a string to the struct * function: cstring_t->strip to remove a substring diff --git a/include/markdown.h b/include/markdown.h index 8e33c8e..d353896 100644 --- a/include/markdown.h +++ b/include/markdown.h @@ -21,7 +21,7 @@ * along with this program. If not, see . * * - * enum: line_bitmask which enumerates markdown formating bits + * enum: line_bitmask which enumerates markdown formatting bits * * struct: deck_t the root object representing a deck of slides * struct: slide_t a linked list element of type slide contained in a deck diff --git a/include/parser.h b/include/parser.h index afc736e..751afdd 100644 --- a/include/parser.h +++ b/include/parser.h @@ -25,7 +25,7 @@ * * function: markdown_load is the main function which reads a file handle, * and initializes deck, slides and lines - * function: markdown_analyse which is used to identify line wide formating + * function: markdown_analyse which is used to identify line wide formatting * rules in given line * function: markdown_debug to print a report of the generated data structure * function: adjust_line_length to calculate line length excluding markup diff --git a/include/url.h b/include/url.h index 330e4be..34c5bc9 100644 --- a/include/url.h +++ b/include/url.h @@ -20,7 +20,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . * - * function: url_init to intialize a new url object + * function: url_init to initialize a new url object */ typedef struct _url_t { diff --git a/include/viewer.h b/include/viewer.h index 1b2b509..2dbc266 100644 --- a/include/viewer.h +++ b/include/viewer.h @@ -25,7 +25,7 @@ * * function: ncurses_display initializes ncurses, defines colors, calculates * window geometry and handles key strokes - * function: add_line detects inline markdown formating and prints line char + * function: add_line detects inline markdown formatting and prints line char * by char * function: fade_in, fade_out implementing color fading in 256 color mode * function: int_length to calculate decimal length of slide count -- 2.20.1