From c871773f3258506fd71fbf70e54f3f63e5661f83 Mon Sep 17 00:00:00 2001 From: Duncan Regan Date: Sat, 10 Jan 2015 16:19:11 -0500 Subject: [PATCH] Updates fixed-size suffix Compiler gives the following warning: `warning: the `u` suffix on integers is deprecated; use `us` or one of the fixed-sized suffixes` And also the errror: `error: mismatched types: expected `u64`, found `usize` (expected u64, found usize)` Changing the suffix to `u64` results in a successful `cargo run` outputting the desired `Versions compared successfully!` --- src/doc/intro.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/intro.md b/src/doc/intro.md index cb28586d103..0d5e547c827 100644 --- a/src/doc/intro.md +++ b/src/doc/intro.md @@ -106,9 +106,9 @@ use semver::Version; fn main() { assert!(Version::parse("1.2.3") == Ok(Version { - major: 1u, - minor: 2u, - patch: 3u, + major: 1u64, + minor: 2u64, + patch: 3u64, pre: vec!(), build: vec!(), }));