From f546ad2ab1ff444d8867b9019145a86989fa8279 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Wed, 15 Feb 2023 23:46:56 -0800 Subject: [PATCH] impl: clarify usage message Resolves #3521 --- autoload/go/impl.vim | 2 +- doc/vim-go.txt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/autoload/go/impl.vim b/autoload/go/impl.vim index 1a04d0ccb8..2f70e6cb50 100644 --- a/autoload/go/impl.vim +++ b/autoload/go/impl.vim @@ -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 diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 09cb76af04..582317a3db 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -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