File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl JsonValue {
419
419
///
420
420
/// array.push("foo");
421
421
///
422
- /// assert!(array[0].is( "foo") );
422
+ /// assert!(array[0] == "foo");
423
423
/// ```
424
424
impl Index < usize > for JsonValue {
425
425
type Output = JsonValue ;
@@ -443,7 +443,7 @@ impl Index<usize> for JsonValue {
443
443
///
444
444
/// array[1] = "bar".into();
445
445
///
446
- /// assert!(array[1].is( "bar") );
446
+ /// assert!(array[1] == "bar");
447
447
/// # }
448
448
/// ```
449
449
impl IndexMut < usize > for JsonValue {
@@ -479,7 +479,7 @@ impl IndexMut<usize> for JsonValue {
479
479
/// "foo" => "bar"
480
480
/// };
481
481
///
482
- /// assert!(object["foo"].is( "bar") );
482
+ /// assert!(object["foo"] == "bar");
483
483
/// # }
484
484
/// ```
485
485
impl < ' a > Index < & ' a str > for JsonValue {
@@ -523,7 +523,7 @@ impl<'a> Index<&'a String> for JsonValue {
523
523
///
524
524
/// object["foo"] = 42.into();
525
525
///
526
- /// assert!(object["foo"].is(42) );
526
+ /// assert!(object["foo"] == 42 );
527
527
/// # }
528
528
/// ```
529
529
impl < ' a > IndexMut < & ' a str > for JsonValue {
You can’t perform that action at this time.
0 commit comments