@@ -218,6 +218,7 @@ impl PartialEq for Map<String, Value> {
218
218
///
219
219
/// ```rust
220
220
/// # use serde_json::Value;
221
+ /// #
221
222
/// # let val = &Value::String("".to_owned());
222
223
/// # let _ =
223
224
/// match *val {
@@ -243,10 +244,13 @@ impl<'a, Q: ?Sized> ops::Index<&'a Q> for Map<String, Value>
243
244
/// present in the map.
244
245
///
245
246
/// ```rust
246
- /// # #[macro_use] extern crate serde_json;
247
+ /// # #[macro_use]
248
+ /// # extern crate serde_json;
249
+ /// #
247
250
/// # fn main() {
248
- /// # let mut map = serde_json::Map::new();
249
- /// # map.insert("key".to_owned(), serde_json::Value::Null);
251
+ /// # let mut map = serde_json::Map::new();
252
+ /// # map.insert("key".to_owned(), serde_json::Value::Null);
253
+ /// #
250
254
/// map["key"] = json!("value");
251
255
/// # }
252
256
/// ```
@@ -424,7 +428,9 @@ impl<'a> Entry<'a> {
424
428
/// # Examples
425
429
///
426
430
/// ```rust
427
- /// # #[macro_use] extern crate serde_json;
431
+ /// # #[macro_use]
432
+ /// # extern crate serde_json;
433
+ /// #
428
434
/// # fn main() {
429
435
/// let mut map = serde_json::Map::new();
430
436
/// map.entry("serde").or_insert(json!(12));
@@ -446,7 +452,9 @@ impl<'a> Entry<'a> {
446
452
/// # Examples
447
453
///
448
454
/// ```rust
449
- /// # #[macro_use] extern crate serde_json;
455
+ /// # #[macro_use]
456
+ /// # extern crate serde_json;
457
+ /// #
450
458
/// # fn main() {
451
459
/// let mut map = serde_json::Map::new();
452
460
/// map.entry("serde").or_insert_with(|| json!("hoho"));
@@ -493,7 +501,9 @@ impl<'a> VacantEntry<'a> {
493
501
/// # Examples
494
502
///
495
503
/// ```rust
496
- /// # #[macro_use] extern crate serde_json;
504
+ /// # #[macro_use]
505
+ /// # extern crate serde_json;
506
+ /// #
497
507
/// # fn main() {
498
508
/// use serde_json::map::Entry;
499
509
///
@@ -519,7 +529,9 @@ impl<'a> OccupiedEntry<'a> {
519
529
/// # Examples
520
530
///
521
531
/// ```rust
522
- /// # #[macro_use] extern crate serde_json;
532
+ /// # #[macro_use]
533
+ /// # extern crate serde_json;
534
+ /// #
523
535
/// # fn main() {
524
536
/// use serde_json::map::Entry;
525
537
///
@@ -544,7 +556,9 @@ impl<'a> OccupiedEntry<'a> {
544
556
/// # Examples
545
557
///
546
558
/// ```rust
547
- /// # #[macro_use] extern crate serde_json;
559
+ /// # #[macro_use]
560
+ /// # extern crate serde_json;
561
+ /// #
548
562
/// # fn main() {
549
563
/// use serde_json::map::Entry;
550
564
///
@@ -569,7 +583,9 @@ impl<'a> OccupiedEntry<'a> {
569
583
/// # Examples
570
584
///
571
585
/// ```rust
572
- /// # #[macro_use] extern crate serde_json;
586
+ /// # #[macro_use]
587
+ /// # extern crate serde_json;
588
+ /// #
573
589
/// # fn main() {
574
590
/// use serde_json::map::Entry;
575
591
///
@@ -596,7 +612,9 @@ impl<'a> OccupiedEntry<'a> {
596
612
/// # Examples
597
613
///
598
614
/// ```rust
599
- /// # #[macro_use] extern crate serde_json;
615
+ /// # #[macro_use]
616
+ /// # extern crate serde_json;
617
+ /// #
600
618
/// # fn main() {
601
619
/// use serde_json::map::Entry;
602
620
///
@@ -624,7 +642,9 @@ impl<'a> OccupiedEntry<'a> {
624
642
/// # Examples
625
643
///
626
644
/// ```rust
627
- /// # #[macro_use] extern crate serde_json;
645
+ /// # #[macro_use]
646
+ /// # extern crate serde_json;
647
+ /// #
628
648
/// # fn main() {
629
649
/// use serde_json::map::Entry;
630
650
///
@@ -650,7 +670,9 @@ impl<'a> OccupiedEntry<'a> {
650
670
/// # Examples
651
671
///
652
672
/// ```rust
653
- /// # #[macro_use] extern crate serde_json;
673
+ /// # #[macro_use]
674
+ /// # extern crate serde_json;
675
+ /// #
654
676
/// # fn main() {
655
677
/// use serde_json::map::Entry;
656
678
///
0 commit comments