From 841a39a2f74ddf287b20a546cd539e8a49f206f4 Mon Sep 17 00:00:00 2001 From: Rumble Date: Thu, 22 Aug 2013 18:19:27 -0400 Subject: [PATCH] Fixed more typos --- src/improved-edit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/improved-edit.c b/src/improved-edit.c index 298d3a4..7a32ed8 100644 --- a/src/improved-edit.c +++ b/src/improved-edit.c @@ -118,8 +118,8 @@ void parse_edit_action(int command, char *string, struct descriptor_data *d) "/i# - inserts before line #\r\n" "/l - lists buffer\r\n" "/n - lists buffer with line numbers\r\n" - "/r 'a' 'b' - replace 1st occurance of text in buffer with text \r\n" - "/ra 'a' 'b'- replace all occurances of text within buffer with text \r\n" + "/r 'a' 'b' - replace 1st occurence of text in buffer with text \r\n" + "/ra 'a' 'b'- replace all occurences of text within buffer with text \r\n" " usage: /r[a] 'pattern' 'replacement'\r\n" "/t - toggles '@' and tabs\r\n" "/s - saves text\r\n"); @@ -193,7 +193,7 @@ void parse_edit_action(int command, char *string, struct descriptor_data *d) return; } else if ((total_len = ((strlen(t) - strlen(s)) + strlen(*d->str))) <= d->max_str) { if ((replaced = replace_str(d->str, s, t, rep_all, d->max_str)) > 0) { - write_to_output(d, "Replaced %d occurance%sof '%s' with '%s'.\r\n", replaced, ((replaced != 1) ? "s " : " "), s, t); + write_to_output(d, "Replaced %d occurence%sof '%s' with '%s'.\r\n", replaced, ((replaced != 1) ? "s " : " "), s, t); } else if (replaced == 0) { write_to_output(d, "String '%s' not found.\r\n", s); } else