commit 939c7b2d529b8c982672a6e141a8bef2348d358a
parent 1d3cbe9f278297fffa83e4e0c99d8ba46903cc3e
Author: Jason <jason@kayoway.com>
Date: Sat, 23 Nov 2019 19:38:15 +0900
Amend typos
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/stringop.c b/common/stringop.c
@@ -96,7 +96,7 @@ char **split_args(const char *start, int *argc) {
bool in_token = false;
bool in_string = false;
bool in_char = false;
- bool in_brackets = false; // brackets are used for critera
+ bool in_brackets = false; // brackets are used for criteria
bool escaped = false;
const char *end = start;
if (start) {
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
@@ -596,7 +596,7 @@ static void damage_handle_frame(struct wl_listener *listener, void *user_data) {
// We only check tv_sec because if the predicted refresh time is less
// than a second before the current time, then msec_until_refresh will
// end up slightly below zero, which will effectively disable the delay
- // without potential disasterous negative overflows that could occur if
+ // without potential disastrous negative overflows that could occur if
// tv_sec was not checked.
if (predicted_refresh.tv_sec >= now.tv_sec) {
long nsec_until_refresh
diff --git a/swaybar/tray/icon.c b/swaybar/tray/icon.c
@@ -188,7 +188,7 @@ static int entry_handler(char *group, char *key, char *value,
* This is a Freedesktop Desktop Entry parser (essentially INI)
* It calls entry_handler for every entry
* and group_handler between every group (as well as at both ends)
- * Handlers return whether an error occured, which stops parsing
+ * Handlers return whether an error occurred, which stops parsing
*/
static struct icon_theme *read_theme_file(char *basedir, char *theme_name) {
// look for index.theme file