diff --git a/src/lib.rs b/src/lib.rs index c121d17f..6ddea3e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()); /// # } /// ```