File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl JsonValue {
419419///
420420/// array.push("foo");
421421///
422- /// assert!(array[0].is( "foo") );
422+ /// assert!(array[0] == "foo");
423423/// ```
424424impl Index < usize > for JsonValue {
425425 type Output = JsonValue ;
@@ -443,7 +443,7 @@ impl Index<usize> for JsonValue {
443443///
444444/// array[1] = "bar".into();
445445///
446- /// assert!(array[1].is( "bar") );
446+ /// assert!(array[1] == "bar");
447447/// # }
448448/// ```
449449impl IndexMut < usize > for JsonValue {
@@ -479,7 +479,7 @@ impl IndexMut<usize> for JsonValue {
479479/// "foo" => "bar"
480480/// };
481481///
482- /// assert!(object["foo"].is( "bar") );
482+ /// assert!(object["foo"] == "bar");
483483/// # }
484484/// ```
485485impl < ' a > Index < & ' a str > for JsonValue {
@@ -523,7 +523,7 @@ impl<'a> Index<&'a String> for JsonValue {
523523///
524524/// object["foo"] = 42.into();
525525///
526- /// assert!(object["foo"].is(42) );
526+ /// assert!(object["foo"] == 42 );
527527/// # }
528528/// ```
529529impl < ' a > IndexMut < & ' a str > for JsonValue {
You can’t perform that action at this time.
0 commit comments