Skip to content

Commit 5667759

Browse files
committed
doc: Minor grammar edits to documentation comments in term.rs.
1 parent 4652d43 commit 5667759

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/term.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl Term {
332332
Ok(chars.iter().collect::<String>())
333333
}
334334

335-
/// Read securely a line of input.
335+
/// Read a line of input securely.
336336
///
337337
/// This is similar to `read_line` but will not echo the output. This
338338
/// also switches the terminal into a different mode where not all
@@ -386,7 +386,7 @@ impl Term {
386386

387387
/// Return the terminal size in rows and columns.
388388
///
389-
/// If the size cannot be reliably determined None is returned.
389+
/// If the size cannot be reliably determined `None` is returned.
390390
#[inline]
391391
pub fn size_checked(&self) -> Option<(u16, u16)> {
392392
terminal_size(self)
@@ -424,7 +424,7 @@ impl Term {
424424

425425
/// Clear the current line.
426426
///
427-
/// The positions the cursor at the beginning of the line again.
427+
/// This positions the cursor at the beginning of the current line.
428428
#[inline]
429429
pub fn clear_line(&self) -> io::Result<()> {
430430
clear_line(self)
@@ -456,7 +456,7 @@ impl Term {
456456
clear_to_end_of_screen(self)
457457
}
458458

459-
/// Clear the last `n` chars in the current line.
459+
/// Clear the last `n` chars of the current line.
460460
#[inline]
461461
pub fn clear_chars(&self, n: usize) -> io::Result<()> {
462462
clear_chars(self, n)

0 commit comments

Comments
 (0)