Skip to content

Commit

Permalink
chore(examples): update input reader usage
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Dec 10, 2024
1 parent 24a72bb commit 8928a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/cellbuf/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func main() {

defer scr.Close() //nolint:errcheck

drv, err := input.NewDriver(os.Stdin, termType, 0)
drv, err := input.NewReader(os.Stdin, termType, 0)
if err != nil {
log.Fatalf("creating input driver: %v", err)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/layout/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func main() {

defer term.Restore(os.Stdin.Fd(), state) //nolint:errcheck

drv, err := input.NewDriver(os.Stdin, termType, 0)
drv, err := input.NewReader(os.Stdin, termType, 0)
if err != nil {
log.Fatalf("creating input driver: %v", err)
}
Expand Down

0 comments on commit 8928a93

Please sign in to comment.