Skip to content

Commit 673e1b2

Browse files
e-ivkovgmoshkin
authored andcommitted
fix TypeMismatch error description
1 parent 143897c commit 673e1b2

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

rmp/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
- Needed because `std::io::Read` (and Write) are missing on `#![no_std]`
1111
- Introduces new `Bytes` and `ByteBuf` wrappers, that implement RmpRead/RmpWrite for no\_std targets.
1212

13+
### Fixed
14+
- Fixed grammar in `TypeMismatch` error messages.
15+
1316
## 0.8.6 - 2017-04-23
1417
### Added
1518
- New `rmp::decode::read_str_from_slice` function for zero-copy reading strings from slices.

rmp/src/decode/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ impl Display for ValueReadError {
216216
ValueReadError::InvalidMarkerRead(..) => "failed to read MessagePack marker",
217217
ValueReadError::InvalidDataRead(..) => "failed to read MessagePack data",
218218
ValueReadError::TypeMismatch(..) => {
219-
"the type decoded isn't match with the expected one"
219+
"the type decoded does not match the expected one"
220220
}
221221
})
222222
}
@@ -324,7 +324,7 @@ impl<E: RmpReadErr> Display for NumValueReadError<E> {
324324
NumValueReadError::InvalidMarkerRead(..) => "failed to read MessagePack marker",
325325
NumValueReadError::InvalidDataRead(..) => "failed to read MessagePack data",
326326
NumValueReadError::TypeMismatch(..) => {
327-
"the type decoded isn't match with the expected one"
327+
"the type decoded does not match the expected one"
328328
}
329329
NumValueReadError::OutOfRange => "out of range integral type conversion attempted",
330330
})

0 commit comments

Comments
 (0)