Fix a typo in a comment.

This commit is contained in:
Dan Gohman
2018-09-28 22:50:31 -07:00
parent 79cea5e18b
commit 17859a87ff

View File

@@ -215,7 +215,7 @@ impl Offset32 {
Offset32(x) Offset32(x)
} }
/// Create a new `Offset32` representing the signed numver `x` if possible. /// Create a new `Offset32` representing the signed number `x` if possible.
pub fn try_from_i64(x: i64) -> Option<Self> { pub fn try_from_i64(x: i64) -> Option<Self> {
let casted = x as i32; let casted = x as i32;
if casted as i64 == x { if casted as i64 == x {