Skip to content

Commit

Permalink
fix: typo of vmi
Browse files Browse the repository at this point in the history
  • Loading branch information
lymslive committed Nov 30, 2023
1 parent e828368 commit 700ed44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ compile_sass = true
build_search_index = true

# github page can select /docs but not /public
output_dir = "docs"
# output_dir = "docs"
output_dir = "public"

# https://www.getzola.org/themes/book/
theme = "book"
Expand Down
4 changes: 2 additions & 2 deletions content/ch02-viml-grammar/sn4-function-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ vim 有时会有点麻烦,可能还涉及你的 `vimrc` 配置。因此还是

在函数定义时可以在参数表中加入若干参数,然后在调用时也须使用相同数量的参数:

```vmi
```vim
: function! Sum(x, y)
: return a:x + a:y
: endfunction
Expand All @@ -127,7 +127,7 @@ vim 有时会有点麻烦,可能还涉及你的 `vimrc` 配置。因此还是
,使形参始终保存着当前调用时实参的值,那是更加安全的做法。

为了更好地理解参数作用域,改写上面的代码如下:
```vmi
```vim
: function! Sum(x, y)
: let x = 'not used x'
: let y = 'not used y'
Expand Down

0 comments on commit 700ed44

Please sign in to comment.