summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/term/term.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/term/term.go')
-rw-r--r--vendor/golang.org/x/term/term.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/golang.org/x/term/term.go b/vendor/golang.org/x/term/term.go
index 69931cc84..1f6a38fad 100644
--- a/vendor/golang.org/x/term/term.go
+++ b/vendor/golang.org/x/term/term.go
@@ -7,11 +7,11 @@
//
// Putting a terminal into raw mode is the most common requirement:
//
-// oldState, err := terminal.MakeRaw(0)
+// oldState, err := term.MakeRaw(int(os.Stdin.Fd()))
// if err != nil {
// panic(err)
// }
-// defer terminal.Restore(0, oldState)
+// defer term.Restore(int(os.Stdin.Fd()), oldState)
package term
// State contains the state of a terminal.