Skip to content

Commit

Permalink
Merge pull request #2736 from zoonfafer/doc-typos
Browse files Browse the repository at this point in the history
doc: Fix typos
  • Loading branch information
w0rp committed Sep 20, 2019
2 parents 6ab264f + da262f4 commit e6946de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/ale/path.vim
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ function! ale#path#FindNearestDirectory(buffer, directory_name) abort
return ''
endfunction

" Given a buffer, a string to search for, an a global fallback for when
" Given a buffer, a string to search for, and a global fallback for when
" the search fails, look for a file in parent paths, and if that fails,
" use the global fallback path instead.
function! ale#path#ResolveLocalPath(buffer, search_string, global_fallback) abort
" Search for a locally installed file first.
let l:path = ale#path#FindNearestFile(a:buffer, a:search_string)

" If the serach fails, try the global executable instead.
" If the search fails, try the global executable instead.
if empty(l:path)
let l:path = a:global_fallback
endif
Expand Down

0 comments on commit e6946de

Please sign in to comment.