From d6f42c9d6100dc7e881636bb74f5f27900ea398b Mon Sep 17 00:00:00 2001 From: Richard Bradshaw Date: Sat, 26 Jun 2021 18:13:37 +0100 Subject: [PATCH] Annotate the tuple Make clear that the tuple is (columns, rows). --- src/sys/unix/size.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/unix/size.rs b/src/sys/unix/size.rs index 2402271..abd8133 100644 --- a/src/sys/unix/size.rs +++ b/src/sys/unix/size.rs @@ -10,7 +10,7 @@ struct TermSize { x: c_ushort, y: c_ushort, } -/// Get the size of the terminal. +/// Get the size (columns, rows) of the terminal. pub fn terminal_size() -> io::Result<(u16, u16)> { unsafe { let mut size: TermSize = mem::zeroed();