This commit is contained in:
Nikolay Volf 2016-02-17 03:17:02 +03:00
parent 4a028f5faf
commit d63f13245f

View File

@ -16,13 +16,13 @@
//! Semantic version formatting and comparing. //! Semantic version formatting and comparing.
/// A version value with strict meaning. Use `to_u32` to convert to a simple integer. /// A version value with strict meaning. Use `as_u32` to convert to a simple integer.
/// ///
/// # Example /// # Example
/// ``` /// ```
/// extern crate ethcore_util as util; /// extern crate ethcore_util as util;
/// use util::semantic_version::*; /// use util::semantic_version::*;
/// ///
/// fn main() { /// fn main() {
/// assert_eq!(SemanticVersion::new(1, 2, 3).as_u32(), 0x010203); /// assert_eq!(SemanticVersion::new(1, 2, 3).as_u32(), 0x010203);
/// } /// }