From 2321bbc49cbf8303ea9834c419750e793e31be73 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Thu, 10 Dec 2020 07:46:38 +0000 Subject: [PATCH] Update doc to use "term" instead of "terminal" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Very small patch, but the example at the top still used the old "terminal" package name, resulting in "golang.org/x/crypto/ssh/terminal" being goimport'd instead of golang.org/x/term Change-Id: If02a2d7ef6fe63fa86f98ca16b523d06ad897474 GitHub-Last-Rev: 594c1a04a1f006800243fd09588a5c9df36bac19 GitHub-Pull-Request: golang/term#2 Reviewed-on: https://go-review.googlesource.com/c/term/+/276912 Reviewed-by: Daniel Martí Reviewed-by: Bryan C. Mills Trust: Daniel Martí Trust: Bryan C. Mills Run-TryBot: Daniel Martí TryBot-Result: Go Bot --- term.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term.go b/term.go index 69931cc..2a4ccf8 100644 --- a/term.go +++ b/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(0) // if err != nil { // panic(err) // } -// defer terminal.Restore(0, oldState) +// defer term.Restore(0, oldState) package term // State contains the state of a terminal.