aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/decoration.c2
-rw-r--r--src/nvim/eval/funcs.c2
-rw-r--r--src/nvim/lua/executor.c2
-rw-r--r--src/nvim/marktree.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/decoration.c b/src/nvim/decoration.c
index f860b65c93..e0fde50d8d 100644
--- a/src/nvim/decoration.c
+++ b/src/nvim/decoration.c
@@ -27,7 +27,7 @@
#endif
// TODO(bfredl): These should maybe be per-buffer, so that all resources
-// asssociated with a buffer can be freed when the buffer is unloaded.
+// associated with a buffer can be freed when the buffer is unloaded.
kvec_t(DecorSignHighlight) decor_items = KV_INITIAL_VALUE;
uint32_t decor_freelist = UINT32_MAX;
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c
index fca1534dfc..98deb7b32b 100644
--- a/src/nvim/eval/funcs.c
+++ b/src/nvim/eval/funcs.c
@@ -7440,7 +7440,7 @@ static void f_setenv(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
char valbuf[NUMBUFLEN];
const char *name = tv_get_string_buf(&argvars[0], namebuf);
- // seting an environment variable may be dangerous, e.g. you could
+ // setting an environment variable may be dangerous, e.g. you could
// setenv GCONV_PATH=/tmp and then have iconv() unexpectedly call
// a shell command using some shared library:
if (check_secure()) {
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 04eda99d17..9ff217af84 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -115,7 +115,7 @@ lua_State *get_global_lstate(void)
/// Convert lua error into a Vim error message
///
/// @param lstate Lua interpreter state.
-/// @param[in] msg Message base, must contain one `%s`.
+/// @param[in] msg Message base, must contain one `%*s`.
void nlua_error(lua_State *const lstate, const char *const msg)
FUNC_ATTR_NONNULL_ALL
{
diff --git a/src/nvim/marktree.h b/src/nvim/marktree.h
index bf653ee564..9fb83b8b98 100644
--- a/src/nvim/marktree.h
+++ b/src/nvim/marktree.h
@@ -48,7 +48,7 @@ typedef struct {
} MarkTreeIter;
#define marktree_itr_valid(itr) ((itr)->x != NULL)
-// accces raw key: flags in MT_FLAG_EXTERNAL_MASK and decor_data are safe to modify.
+// access raw key: flags in MT_FLAG_EXTERNAL_MASK and decor_data are safe to modify.
#define mt_itr_rawkey(itr) ((itr)->x->key[(itr)->i])
// Internal storage