Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl: clarify usage message #3522

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/go/impl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function! go#impl#Impl(...) abort
let recv = join(a:000[:-2], ' ')
let iface = a:000[-1]
else
call go#util#EchoError('usage: GoImpl {receiver} {interface}')
call go#util#EchoError('usage: GoImpl {receiver} {receiver type} {interface}')
return
endif

Expand Down
5 changes: 3 additions & 2 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,13 @@ CTRL-t
:Denite decls:foo
<
*:GoImpl*
:GoImpl [receiver] [interface]
:GoImpl [receiver] [receiver type] [interface]

Generates method stubs for implementing an interface. If no arguments is
passed it takes the identifier under the cursor to be the receiver and
asks for the interface type to be generated. If used with arguments, the
receiver and the interface needs to be specified. Example usages:
receiver name, its type, and the interface needs to be specified. Example
usages:
>
:GoImpl f *Foo io.Writer
:GoImpl t Type io.ReadWriteCloser
Expand Down