diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-02 22:07:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 22:07:00 +0800 |
commit | 65f603f72c387cfac7955d8dfe51b42d35caa0f8 (patch) | |
tree | ee2734f0fe4e4d91f4f163ba99f64ce992948af9 /src/nvim/eval.c | |
parent | 44b88d8c310e778c55ef1f7a270d2651266054ca (diff) | |
parent | 4716a578ae0c3516d685495bb55e40c939a4ac87 (diff) | |
download | rneovim-65f603f72c387cfac7955d8dfe51b42d35caa0f8.tar.gz rneovim-65f603f72c387cfac7955d8dfe51b42d35caa0f8.tar.bz2 rneovim-65f603f72c387cfac7955d8dfe51b42d35caa0f8.zip |
Merge pull request #20782 from dundargoc/docs/typos
docs: fix typos
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 89ae4a2cd0..bc669a3e11 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -3051,7 +3051,7 @@ static int eval7(char **arg, typval_T *rettv, int evaluate, int want_string) case '#': if ((*arg)[1] == '{') { (*arg)++; - ret = dict_get_tv(arg, rettv, evaluate, true); + ret = eval_dict(arg, rettv, evaluate, true); } else { ret = NOTDONE; } @@ -3062,7 +3062,7 @@ static int eval7(char **arg, typval_T *rettv, int evaluate, int want_string) case '{': ret = get_lambda_tv(arg, rettv, evaluate); if (ret == NOTDONE) { - ret = dict_get_tv(arg, rettv, evaluate, false); + ret = eval_dict(arg, rettv, evaluate, false); } break; @@ -4595,7 +4595,7 @@ static int get_literal_key(char **arg, typval_T *tv) /// "literal" is true for #{key: val} /// /// @return OK or FAIL. Returns NOTDONE for {expr}. -static int dict_get_tv(char **arg, typval_T *rettv, int evaluate, bool literal) +static int eval_dict(char **arg, typval_T *rettv, int evaluate, bool literal) { typval_T tv; char *key = NULL; |