Skip to content

Commit c1ac944

Browse files
committed
chore: proper WithUser godocs
1 parent 7a09e95 commit c1ac944

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
1616
// Example:
1717
//
1818
// cred := syscall.Credential{Uid: 1000, Gid: 1000}
19-
// c := NewCommand("echo hello", cred)
19+
// c := NewCommand("echo hello", WithUser(cred))
2020
// c.Execute()
2121
func WithUser(credential syscall.Credential) func(c *Command) {
2222
return func(c *Command) {

command_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func createBaseCommand(c *Command) *exec.Cmd {
1616
// Example:
1717
//
1818
// token := syscall.Token(handle)
19-
// c := NewCommand("echo hello", token)
19+
// c := NewCommand("echo hello", WithUser(token))
2020
// c.Execute()
2121
func WithUser(token syscall.Token) func(c *Command) {
2222
return func(c *Command) {

0 commit comments

Comments
 (0)