From 223519f81f51319a873337ce43f708d1a458f51c Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Mon, 24 Aug 2020 15:22:04 -0400 Subject: [PATCH] Add periods after comments to make the godoc linter happy. --- key.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/key.go b/key.go index fa4457b..309c4de 100644 --- a/key.go +++ b/key.go @@ -126,7 +126,7 @@ const ( keyDEL = 127 // delete. on most systems this is mapped to backspace, I hear ) -// Control key aliases: +// Control key aliases. const ( KeyNull = keyNUL KeyBreak = keyETX @@ -173,7 +173,7 @@ const ( KeyCtrlQuestionMark = keyDEL // ctrl+? ) -// Other keys: +// Other keys. const ( KeyRune = -(iota + 1) KeyUp @@ -187,7 +187,7 @@ const ( KeyPgDown ) -// Mapping for control keys to friendly consts: +// Mapping for control keys to friendly consts. var keyNames = map[int]string{ keyNUL: "ctrl+@", // also ctrl+` keySOH: "ctrl+a", @@ -236,8 +236,7 @@ var keyNames = map[int]string{ KeyPgDown: "pgdown", } -// Mapping for sequences to consts -// TODO: should we just move this into the hex table? +// Mapping for sequences to consts. var sequences = map[string]KeyType{ "\x1b[A": KeyUp, "\x1b[B": KeyDown,