Fix a typo and a "tag value" that has been overlooked.

This commit is contained in:
KAMADA Ken'ichi 2017-06-25 20:33:27 +09:00
parent 0949abc4ac
commit 62bf989fa9
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ impl Reader {
}
// Cheat on the type system and erase the lifetime by transmute().
// The scope releases the innter `v` to unborrow `buf`.
// The scope releases the inner `v` to unborrow `buf`.
let (v, le) = {
let (v, le) = try!(tiff::parse_exif(&buf));
(unsafe { mem::transmute(v) }, le) };

View File

@ -93,7 +93,7 @@ impl fmt::Display for Tag {
}
}
/// An enum that indicates how a tag value is interpreted.
/// An enum that indicates how a tag number is interpreted.
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum Context {
/// TIFF attributes defined in the TIFF Rev. 6.0 specification.