Skip to content

Commit

Permalink
commands: rename Peers to ChannelPeers
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed Feb 17, 2015
1 parent 74bef41 commit af6a317
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autoload/go/oracle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function! go#oracle#Freevars(selected)
endfunction

" Show send/receive corresponding to selected channel op
function! go#oracle#Peers(selected)
function! go#oracle#ChannelPeers(selected)
let out = s:RunOracle('peers', a:selected)
call s:qflistSecond(out)
endfunction
Expand Down
8 changes: 4 additions & 4 deletions doc/vim-go.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ COMMANDS *go-commands*
understand what the inputs are to a complex block of code even if you
don’t plan to change it.

*:GoPeers*
:GoPeers
*:GoChannelPeers*
:GoChannelPeers

Shows the set of possible sends/receives on the channel operand of the
selected send or receive operation; the selection must be a <- token.
Expand All @@ -311,7 +311,7 @@ COMMANDS *go-commands*

"done <- true"

and call |GoPeers| on it. It will show where it was allocated, and
and call |GoChannelPeers| on it. It will show where it was allocated, and
the sending and receiving endings.

*:GoReferrers*
Expand Down Expand Up @@ -454,7 +454,7 @@ Show path from callgraph root to selected function

Show free variables of selection

*(go-peers)*
*(go-channelpeers)*

Show send/receive corresponding to selected channel op

Expand Down
4 changes: 2 additions & 2 deletions ftplugin/go/commands.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nnoremap <silent> <Plug>(go-describe) :<C-u>call go#oracle#Describe(-1)<CR>
nnoremap <silent> <Plug>(go-callgraph) :<C-u>call go#oracle#Callgraph(-1)<CR>
nnoremap <silent> <Plug>(go-callstack) :<C-u>call go#oracle#Callstack(-1)<CR>
nnoremap <silent> <Plug>(go-freevars) :<C-u>call go#oracle#Freevars(-1)<CR>
nnoremap <silent> <Plug>(go-peers) :<C-u>call go#oracle#Peers(-1)<CR>
nnoremap <silent> <Plug>(go-channelpeers) :<C-u>call go#oracle#ChannelPeers(-1)<CR>
nnoremap <silent> <Plug>(go-referrers) :<C-u>call go#oracle#Referrers(-1)<CR>
nnoremap <silent> <Plug>(go-rename) :<C-u>call go#rename#Rename()<CR>
Expand Down Expand Up @@ -51,7 +51,7 @@ command! -range=% GoCallers call go#oracle#Callers(<count>)
command! -range=% GoCallgraph call go#oracle#Callgraph(<count>)
command! -range=% GoCallstack call go#oracle#Callstack(<count>)
command! -range=% GoFreevars call go#oracle#Freevars(<count>)
command! -range=% GoPeers call go#oracle#Peers(<count>)
command! -range=% GoChannelPeers call go#oracle#ChannelPeers(<count>)
command! -range=% GoReferrers call go#oracle#Referrers(<count>)

" tool
Expand Down

0 comments on commit af6a317

Please sign in to comment.