diff options
author | Xiretza <xiretza@xiretza.xyz> | 2022-03-18 19:58:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-18 19:58:00 +0100 |
commit | f2e5f509d995b291e4b9e05a0c059e83490a18e1 (patch) | |
tree | 327672d54f988c69c3ee0d0e727533e79448b327 | |
parent | e0fe91f6a3ec88d6f8bee4f7af1af6bf9b397c1f (diff) | |
download | rneovim-f2e5f509d995b291e4b9e05a0c059e83490a18e1.tar.gz rneovim-f2e5f509d995b291e4b9e05a0c059e83490a18e1.tar.bz2 rneovim-f2e5f509d995b291e4b9e05a0c059e83490a18e1.zip |
docs: reword description for nvim_buf_line_count() (#17766)
This adds a few more keywords to make the function easier to find.
-rw-r--r-- | runtime/doc/api.txt | 2 | ||||
-rw-r--r-- | src/nvim/api/buffer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 4af13a3bbf..dbf87bfd9f 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2215,7 +2215,7 @@ nvim_buf_is_valid({buffer}) *nvim_buf_is_valid()* true if the buffer is valid, false otherwise. nvim_buf_line_count({buffer}) *nvim_buf_line_count()* - Gets the buffer line count + Returns the number of lines in the given buffer. Parameters: ~ {buffer} Buffer handle, or 0 for current buffer diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 9f0cadd5ce..18f7177489 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -52,7 +52,7 @@ /// whether a buffer is loaded. -/// Gets the buffer line count +/// Returns the number of lines in the given buffer. /// /// @param buffer Buffer handle, or 0 for current buffer /// @param[out] err Error details, if any |