diff options
author | Martijn Dekker <martijn@inlv.org> | 2019-12-10 20:41:08 +0100 |
---|---|---|
committer | Daniel Shahaf <danielsh@apache.org> | 2019-12-11 02:37:39 +0000 |
commit | c578f0a08b9257f3db85dab5431270f1a6eb8858 (patch) | |
tree | c643f7c8965fa71d4248045d2a1a0b90a0c5a365 /Src/builtin.c | |
parent | d81238ee955f074cb2c303ce6047bfa7e513d772 (diff) | |
download | zsh-c578f0a08b9257f3db85dab5431270f1a6eb8858.tar.gz zsh-c578f0a08b9257f3db85dab5431270f1a6eb8858.tar.xz zsh-c578f0a08b9257f3db85dab5431270f1a6eb8858.zip |
45004: Fix typos in comments
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index 18daad4fa..bd7736d2c 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1718,7 +1718,7 @@ fcsubs(char **sp, struct asgment *sub) newstr = sub->value.scalar; sub = (Asgment)sub->node.next; oldpos = s; - /* loop over occurences of oldstr in s, replacing them with newstr */ + /* loop over occurrences of oldstr in s, replacing them with newstr */ while ((newpos = (char *)strstr(oldpos, oldstr))) { newmem = (char *) zhalloc(1 + (newpos - s) + strlen(newstr) + strlen(newpos + strlen(oldstr))); @@ -2526,7 +2526,7 @@ typeset_single(char *cname, char *pname, Param pm, UNUSED(int func), * Attempt to assign a scalar value to an array. * This can happen if the array is special. * We'll be lenient and guess what the user meant. - * This is how normal assigment works. + * This is how normal assignment works. */ if (*asg->value.scalar) { /* Array with one value */ |