Skip to content

Commit

Permalink
fix ron doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Aug 11, 2020
1 parent 6db89da commit 5e76a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_ron/src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct Pretty {
/// # Examples
///
/// ```
/// use ron::ser::PrettyConfig;
/// use bevy_ron::ser::PrettyConfig;
///
/// let my_config = PrettyConfig::new()
/// .depth_limit(4)
Expand Down
10 changes: 5 additions & 5 deletions crates/bevy_ron/src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl Number {
/// # Example
///
/// ```
/// # use ron::value::Number;
/// # use bevy_ron::value::Number;
/// let i = Number::new(5);
/// let f = Number::new(2.0);
/// assert_eq!(i.into_f64(), 5.0);
Expand All @@ -182,7 +182,7 @@ impl Number {
/// # Example
///
/// ```
/// # use ron::value::Number;
/// # use bevy_ron::value::Number;
/// let i = Number::new(5);
/// let f = Number::new(2.0);
/// assert_eq!(i.as_f64(), None);
Expand All @@ -197,7 +197,7 @@ impl Number {
/// # Example
///
/// ```
/// # use ron::value::Number;
/// # use bevy_ron::value::Number;
/// let i = Number::new(5);
/// let f = Number::new(2.0);
/// assert_eq!(i.as_i64(), Some(5));
Expand All @@ -212,7 +212,7 @@ impl Number {
/// # Example
///
/// ```
/// # use ron::value::Number;
/// # use bevy_ron::value::Number;
/// let i = Number::new(5);
/// let f = Number::new(2.0);
/// assert!(i.map_to(|i| i > 3, |f| f > 3.0));
Expand Down Expand Up @@ -288,7 +288,7 @@ impl Hash for Float {
/// wrapped in `Number` are equals to each other and are less then any other
/// floating value. It is not the case for the underlying `f64` values themselves.
/// ```
/// use ron::value::Number;
/// use bevy_ron::value::Number;
/// assert!(Number::new(std::f64::NAN) < Number::new(std::f64::NEG_INFINITY));
/// assert_eq!(Number::new(std::f64::NAN), Number::new(std::f64::NAN));
/// ```
Expand Down

0 comments on commit 5e76a01

Please sign in to comment.