Skip to content

Commit

Permalink
chore: proper WithUser godocs
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Dec 29, 2023
1 parent 7a09e95 commit d7ffef3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion command_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
// Example:
//
// cred := syscall.Credential{Uid: 1000, Gid: 1000}
// c := NewCommand("echo hello", cred)
// c := NewCommand("echo hello", WithUser(cred))
// c.Execute()
func WithUser(credential syscall.Credential) func(c *Command) {
return func(c *Command) {
Expand Down
2 changes: 1 addition & 1 deletion command_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
// Example:
//
// token := syscall.Token(handle)
// c := NewCommand("echo hello", token)
// c := NewCommand("echo hello", WithUser(token))
// c.Execute()
func WithUser(token syscall.Token) func(c *Command) {
return func(c *Command) {
Expand Down

0 comments on commit d7ffef3

Please sign in to comment.