From 04707cbba630e3e4ad6b4200bef8ae7888c49e3b Mon Sep 17 00:00:00 2001 From: Nathan Lilienthal Date: Sun, 6 Jan 2019 19:06:57 -0500 Subject: Normalize Log Message Strings The general style for errors, warnings and info messages is to start with a capitalized letter and end without a period. The main exception is when dealing with nouns that are clearer with special case handling, e.g. "macOS failed to work" or "ioctl is borked". --- winpty/src/windows.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winpty/src') diff --git a/winpty/src/windows.rs b/winpty/src/windows.rs index 10a3df37..03a91a76 100644 --- a/winpty/src/windows.rs +++ b/winpty/src/windows.rs @@ -140,8 +140,8 @@ impl<'a> Drop for Config<'a> { pub struct Winpty<'a>(&'a mut winpty_t); impl<'a, 'b> Winpty<'a> { - /// Starts the agent. This process will connect to the agent - /// over a control pipe, and the agent will open data pipes + /// Starts the agent. This process will connect to the agent + /// over a control pipe, and the agent will open data pipes /// (e.g. CONIN and CONOUT). pub fn open(cfg: &Config) -> Result> { let mut err = null_mut() as *mut winpty_error_t; @@ -199,7 +199,7 @@ impl<'a, 'b> Winpty<'a> { } /// Change the size of the Windows console window. - /// + /// /// cols & rows MUST be greater than 0 pub fn set_size(&mut self, cols: u16, rows: u16) -> Result<(), Err> { assert!(cols > 0 && rows > 0); @@ -339,7 +339,7 @@ impl<'a> Drop for SpawnConfig<'a> { } } } - + #[cfg(test)] mod tests { extern crate named_pipe; -- cgit