aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-05-01 19:37:33 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-05-01 19:37:33 +0000
commit75f46cf6c81eff6229b9579513b6e7769b91d75d (patch)
tree0915c4e45d9b930a70f4e5e0d87c272630e6ade2 /lib/libedit
parent7b45c9dfe1181992c75439a067e7462ad92e9bd4 (diff)
downloadsrc-75f46cf6c81eff6229b9579513b6e7769b91d75d.tar.gz
src-75f46cf6c81eff6229b9579513b6e7769b91d75d.zip
lib: minor spelling fixes in comments.
No functional change.
Notes
Notes: svn path=/head/; revision=298896
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/chartype.h4
-rw-r--r--lib/libedit/refresh.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libedit/chartype.h b/lib/libedit/chartype.h
index 17ca5f368673..14456819fd2e 100644
--- a/lib/libedit/chartype.h
+++ b/lib/libedit/chartype.h
@@ -204,11 +204,11 @@ protected size_t ct_enc_width(Char);
#endif
#ifndef NARROWCHAR
-/* Encode a characted into the destination buffer, provided there is sufficent
+/* Encode a characted into the destination buffer, provided there is sufficient
* buffer space available. Returns the number of bytes used up (zero if the
* character cannot be encoded, -1 if there was not enough space available). */
-/* The maximum buffer size to hold the most unwieldly visual representation,
+/* The maximum buffer size to hold the most unwieldy visual representation,
* in this case \U+nnnnn. */
#define VISUAL_WIDTH_MAX ((size_t)8)
diff --git a/lib/libedit/refresh.c b/lib/libedit/refresh.c
index c85e84513b6e..cd516f63c246 100644
--- a/lib/libedit/refresh.c
+++ b/lib/libedit/refresh.c
@@ -561,7 +561,7 @@ re_update_line(EditLine *el, Char *old, Char *new, int i)
nls = ++n;
/*
- * find same begining and same end
+ * find same beginning and same end
*/
osb = ols;
nsb = nls;