Skip to content

Commit 6212813

Browse files
committed
Review comments
1 parent d9f673b commit 6212813

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

terminal.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ var vt100EscapeCodes = EscapeCodes{
3838
}
3939

4040
// A History provides a (possibly bounded) queue of input lines read by [Terminal.ReadLine].
41-
//
42-
// The default implementation of History provides a simple ring buffer limited
43-
// to 100 slots. Clients can provide alternate implementations of History to
44-
// change this behavior.
4541
type History interface {
4642
// Add will be called by [Terminal.ReadLine] to add
4743
// a new, most recent entry to the history.
@@ -116,7 +112,8 @@ type Terminal struct {
116112
//
117113
// It is not safe to call ReadLine concurrently with any methods on History.
118114
//
119-
// [NewTerminal] sets this to an implementation that records the last 100 lines of input.
115+
// [NewTerminal] sets this to a default implementation that records the
116+
// last 100 lines of input.
120117
History History
121118
// historyIndex stores the currently accessed history entry, where zero
122119
// means the immediately previous entry.

0 commit comments

Comments
 (0)