Update vimscript.md (#1952)

Accessing key in dictionaries make use of `[` instead of `(`
This commit is contained in:
Vivian De Smedt 2023-02-24 23:47:30 +01:00 committed by GitHub
parent 6afbde3c2d
commit 9c1026d62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ map(dict, '<>> " . v:val')
```vim
for key in keys(mydict)
echo key . ': ' . mydict(key)
echo key . ': ' . mydict[key]
endfor
```