@@ -78,7 +78,7 @@ impl fmt::Write for PadAdapter<'_, '_> {
7878///
7979/// assert_eq!(
8080/// format!("{:?}", Foo { bar: 10, baz: "Hello World".to_string() }),
81- /// "Foo { bar: 10, baz: \ "Hello World\ " }",
81+ /// r# "Foo { bar: 10, baz: "Hello World" }"# ,
8282/// );
8383/// ```
8484#[ must_use = "must eventually call `finish()` on Debug builders" ]
@@ -125,7 +125,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
125125 ///
126126 /// assert_eq!(
127127 /// format!("{:?}", Bar { bar: 10, another: "Hello World".to_string() }),
128- /// "Bar { bar: 10, another: \ "Hello World\ ", nonexistent_field: 1 }",
128+ /// r# "Bar { bar: 10, another: "Hello World", nonexistent_field: 1 }"# ,
129129 /// );
130130 /// ```
131131 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -237,7 +237,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
237237 ///
238238 /// assert_eq!(
239239 /// format!("{:?}", Bar { bar: 10, baz: "Hello World".to_string() }),
240- /// "Bar { bar: 10, baz: \ "Hello World\ " }",
240+ /// r# "Bar { bar: 10, baz: "Hello World" }"# ,
241241 /// );
242242 /// ```
243243 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -280,7 +280,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
280280///
281281/// assert_eq!(
282282/// format!("{:?}", Foo(10, "Hello World".to_string())),
283- /// "Foo(10, \ "Hello World\ ")",
283+ /// r# "Foo(10, "Hello World")"# ,
284284/// );
285285/// ```
286286#[ must_use = "must eventually call `finish()` on Debug builders" ]
@@ -322,7 +322,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
322322 ///
323323 /// assert_eq!(
324324 /// format!("{:?}", Foo(10, "Hello World".to_string())),
325- /// "Foo(10, \ "Hello World\ ")",
325+ /// r# "Foo(10, "Hello World")"# ,
326326 /// );
327327 /// ```
328328 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -381,7 +381,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
381381 ///
382382 /// assert_eq!(
383383 /// format!("{:?}", Foo(10, "Hello World".to_string())),
384- /// "Foo(10, \ "Hello World\ ")",
384+ /// r# "Foo(10, "Hello World")"# ,
385385 /// );
386386 /// ```
387387 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -747,7 +747,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
747747///
748748/// assert_eq!(
749749/// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
750- /// "{\"A\ ": 10, \"B\ ": 11}",
750+ /// r#"{"A ": 10, "B ": 11}"# ,
751751/// );
752752/// ```
753753#[ must_use = "must eventually call `finish()` on Debug builders" ]
@@ -787,7 +787,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
787787 ///
788788 /// assert_eq!(
789789 /// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
790- /// "{\ "whole\ ": [(\"A\ ", 10), (\"B\ ", 11)]}",
790+ /// r#"{ "whole": [("A ", 10), ("B ", 11)]}"# ,
791791 /// );
792792 /// ```
793793 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -823,7 +823,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
823823 ///
824824 /// assert_eq!(
825825 /// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
826- /// "{\ "whole\ ": [(\"A\ ", 10), (\"B\ ", 11)]}",
826+ /// r#"{ "whole": [("A ", 10), ("B ", 11)]}"# ,
827827 /// );
828828 /// ```
829829 #[ stable( feature = "debug_map_key_value" , since = "1.42.0" ) ]
@@ -899,7 +899,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
899899 ///
900900 /// assert_eq!(
901901 /// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
902- /// "{\ "whole\ ": [(\"A\ ", 10), (\"B\ ", 11)]}",
902+ /// r#"{ "whole": [("A ", 10), ("B ", 11)]}"# ,
903903 /// );
904904 /// ```
905905 #[ stable( feature = "debug_map_key_value" , since = "1.42.0" ) ]
@@ -957,7 +957,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
957957 ///
958958 /// assert_eq!(
959959 /// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
960- /// "{\"A\ ": 10, \"B\ ": 11}",
960+ /// r#"{"A ": 10, "B ": 11}"# ,
961961 /// );
962962 /// ```
963963 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
@@ -997,7 +997,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
997997 ///
998998 /// assert_eq!(
999999 /// format!("{:?}", Foo(vec![("A".to_string(), 10), ("B".to_string(), 11)])),
1000- /// "{\"A\ ": 10, \"B\ ": 11}",
1000+ /// r#"{"A ": 10, "B ": 11}"# ,
10011001 /// );
10021002 /// ```
10031003 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
0 commit comments