Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit 30c7a6a

Browse files
author
Alexander Regueiro
committed
Various minor/cosmetic improvements to code
1 parent cdc7bf3 commit 30c7a6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub trait Terminal: Write {
198198
/// *Note: This does not flush.*
199199
///
200200
/// That means the reset command may get buffered so, if you aren't planning on doing anything
201-
/// else that might flush stdout's buffer (e.g. writing a line of text), you should flush after
201+
/// else that might flush stdout's buffer (e.g., writing a line of text), you should flush after
202202
/// calling reset.
203203
fn reset(&mut self) -> io::Result<bool>;
204204

terminfo/searcher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> {
6464
p.pop();
6565

6666
// on some installations the dir is named after the hex of the char
67-
// (e.g. macOS)
67+
// (e.g., macOS)
6868
p.push(&format!("{:x}", first_char as usize));
6969
p.push(term);
7070
if fs::metadata(&p).is_ok() {
@@ -79,7 +79,7 @@ pub fn get_dbpath_for_term(term: &str) -> Option<PathBuf> {
7979
#[ignore(reason = "buildbots don't have ncurses installed and I can't mock everything I need")]
8080
fn test_get_dbpath_for_term() {
8181
// woefully inadequate test coverage
82-
// note: current tests won't work with non-standard terminfo hierarchies (e.g. macOS's)
82+
// note: current tests won't work with non-standard terminfo hierarchies (e.g., macOS's)
8383
use std::env;
8484
// FIXME (#9639): This needs to handle non-utf8 paths
8585
fn x(t: &str) -> String {

0 commit comments

Comments
 (0)