Skip to content

Commit

Permalink
Merge pull request #4 from edawine/incomplete-error-message
Browse files Browse the repository at this point in the history
Fix incomplete error message in strings.rs
  • Loading branch information
joaomoreno authored Oct 4, 2018
2 parents 134071c + 7d1a2ed commit bfcaf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/strings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn from_utf16(value: &[u16]) -> Result<String, io::Error> {

OsString::from_wide(value)
.into_string()
.map_err(|_| io::Error::new(io::ErrorKind::Other, "Could convert from utf16"))
.map_err(|_| io::Error::new(io::ErrorKind::Other, "Could not convert from utf16"))
}

pub fn to_u16s<S: AsRef<OsStr>>(s: S) -> Vec<u16> {
Expand Down

0 comments on commit bfcaf09

Please sign in to comment.