summaryrefslogtreecommitdiff
path: root/Src
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2022-02-22 13:09:33 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2022-02-22 13:11:02 +0000
commit45182eb4d447a6fbf5f76538326e1a944880ea52 (patch)
tree9e6337a13ef5c65b047bd47b1625fe6d625e0922 /Src
parent865baf7a2513a00996f0eeccf14475670daebe27 (diff)
downloadzsh-45182eb4d447a6fbf5f76538326e1a944880ea52.tar.gz
zsh-45182eb4d447a6fbf5f76538326e1a944880ea52.zip
unposted: Fix some typos and markup.
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/parameter.c2
-rw-r--r--Src/string.c5
-rw-r--r--Src/zsh.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index b44555323..c5cb5ce62 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -592,7 +592,7 @@ getpmfunction_source(HashTable ht, const char *name)
return getfunction_source(ht, name, 0);
}
-/* Param table entry for retrieving ds_functions_source element */
+/* Param table entry for retrieving dis_functions_source element */
/**/
static HashNode
diff --git a/Src/string.c b/Src/string.c
index 9e14ef949..5f439926e 100644
--- a/Src/string.c
+++ b/Src/string.c
@@ -103,7 +103,10 @@ wcs_ztrdup(const wchar_t *s)
#endif /* MULTIBYTE_SUPPORT */
-/* concatenate s1, s2, and s3 in dynamically allocated buffer */
+/* Concatenate s1, s2, and s3 into dynamically allocated buffer.
+ *
+ * To concatenate four or more strings, see zjoin().
+ */
/**/
mod_export char *
diff --git a/Src/zsh.h b/Src/zsh.h
index af9b4fb67..641d9c95c 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1448,7 +1448,7 @@ struct builtin {
int minargs; /* minimum number of arguments */
int maxargs; /* maximum number of arguments, or -1 for no limit */
int funcid; /* xbins (see above) for overloaded handlerfuncs */
- char *optstr; /* string of legal options */
+ char *optstr; /* string of legal options (see execbuiltin()) */
char *defopts; /* options set by default for overloaded handlerfuncs */
};