Skip to content
Myr

docs: fix typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

The previous example was wrong and would result in the following compiler error: error (type) is not an expression Just a simple typo, I've changed it to err to correctly reference the function scoped variable named err.

authored by Dakota Walsh · committed by Christian Muehlhaeuser · parent bb241ce · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:exec.go+1 added-1 removed
37 unmodified lines
38//39// c := exec.Command("vim", "file.txt")40//41// cmd := ExecProcess(c, func(err error) Msg {42// return VimFinishedMsg{err: error}42// return VimFinishedMsg{err: err}43// })44//45// Or, if you don't care about errors, you could simply:46//
83 unmodified lines