Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fmt/parasplit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ impl<'a> ParaWords<'a> {
fn create_words(&mut self) {
if self.para.mail_header {
// no extra spacing for mail headers; always exactly 1 space
// safe to trim_left on every line of a mail header, since the
// safe to trim_start on every line of a mail header, since the
// first line is guaranteed not to have any spaces
self.words.extend(
self.para
Expand Down
2 changes: 1 addition & 1 deletion src/pwd/pwd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub fn absolute_path(path: &Path) -> io::Result<PathBuf> {
path_buf
.as_path()
.to_string_lossy()
.trim_left_matches(r"\\?\"),
.trim_start_matches(r"\\?\"),
).to_path_buf();

Ok(path_buf)
Expand Down
4 changes: 2 additions & 2 deletions tests/common/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ impl CmdResult {
/// stdout_only is a better choice unless stderr may or will be non-empty
pub fn stdout_is<T: AsRef<str>>(&self, msg: T) -> Box<&CmdResult> {
assert_eq!(
String::from(msg.as_ref()),
self.stdout
String::from(msg.as_ref()).trim_end(),
self.stdout.trim_end()
);
Box::new(self)
}
Expand Down