Skip to content

Commit

Permalink
Doctest: Specify newline separator for RON to fix Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbb committed Mar 12, 2021
1 parent 745ac95 commit 8858d18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,9 @@ pub struct TimestampNanoSecondsWithFrac<
/// # vec: "QWEh",
/// # )"#;
///
/// assert_eq!(expected, ron::ser::to_string_pretty(&value, Default::default()).unwrap());
/// # let pretty_config = ron::ser::PrettyConfig::new()
/// # .with_new_line("\n".into());
/// assert_eq!(expected, ron::ser::to_string_pretty(&value, pretty_config).unwrap());
/// assert_eq!(value, ron::from_str(&expected).unwrap());
/// # }
/// ```
Expand Down

0 comments on commit 8858d18

Please sign in to comment.