Name return values for `Screen.Size` (#487)

This adds names to the return values of the Size function to add
context. This also changes the return declarations to use the shortcut
when both named return values are the same type, by only specifying the
type once.
This commit is contained in:
Spenser Black 2021-09-26 12:15:22 -04:00 committed by GitHub
parent f057f0a857
commit 634d607d68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ type Screen interface {
// Size returns the screen size as width, height. This changes in
// response to a call to Clear or Flush.
Size() (int, int)
Size() (width, height int)
// ChannelEvents is an infinite loop that waits for an event and
// channels it into the user provided channel ch. Closing the