@@ -60,14 +60,14 @@ pub type StdoutTerminal = dyn Terminal<Output = Stdout> + Send;
6060pub type StderrTerminal = dyn Terminal < Output = Stderr > + Send ;
6161
6262#[ cfg( not( windows) ) ]
63- /// Return a Terminal wrapping stdout, or None if a terminal couldn't be
63+ /// Returns a Terminal wrapping stdout, or None if a terminal couldn't be
6464/// opened.
6565pub fn stdout ( ) -> Option < Box < StdoutTerminal > > {
6666 TerminfoTerminal :: new ( io:: stdout ( ) ) . map ( |t| Box :: new ( t) as Box < StdoutTerminal > )
6767}
6868
6969#[ cfg( windows) ]
70- /// Return a Terminal wrapping stdout, or None if a terminal couldn't be
70+ /// Returns a Terminal wrapping stdout, or None if a terminal couldn't be
7171/// opened.
7272pub fn stdout ( ) -> Option < Box < StdoutTerminal > > {
7373 TerminfoTerminal :: new ( io:: stdout ( ) )
@@ -76,14 +76,14 @@ pub fn stdout() -> Option<Box<StdoutTerminal>> {
7676}
7777
7878#[ cfg( not( windows) ) ]
79- /// Return a Terminal wrapping stderr, or None if a terminal couldn't be
79+ /// Returns a Terminal wrapping stderr, or None if a terminal couldn't be
8080/// opened.
8181pub fn stderr ( ) -> Option < Box < StderrTerminal > > {
8282 TerminfoTerminal :: new ( io:: stderr ( ) ) . map ( |t| Box :: new ( t) as Box < StderrTerminal > )
8383}
8484
8585#[ cfg( windows) ]
86- /// Return a Terminal wrapping stderr, or None if a terminal couldn't be
86+ /// Returns a Terminal wrapping stderr, or None if a terminal couldn't be
8787/// opened.
8888pub fn stderr ( ) -> Option < Box < StderrTerminal > > {
8989 TerminfoTerminal :: new ( io:: stderr ( ) )
@@ -170,12 +170,12 @@ pub trait Terminal: Write {
170170 /// if there was an I/O error.
171171 fn bg ( & mut self , color : color:: Color ) -> io:: Result < bool > ;
172172
173- /// Sets the given terminal attribute, if supported. Returns `Ok(true)`
173+ /// Sets the given terminal attribute, if supported. Returns `Ok(true)`
174174 /// if the attribute was supported, `Ok(false)` otherwise, and `Err(e)` if
175175 /// there was an I/O error.
176176 fn attr ( & mut self , attr : Attr ) -> io:: Result < bool > ;
177177
178- /// Returns whether the given terminal attribute is supported.
178+ /// Returns `true` if the given terminal attribute is supported.
179179 fn supports_attr ( & self , attr : Attr ) -> bool ;
180180
181181 /// Resets all terminal attributes and colors to their defaults.
0 commit comments