Skip to content

Commit 3e0373c

Browse files
committed
Ensure that deprecated 'JsonValue::is' isn't used in docs.
1 parent 57c3c84 commit 3e0373c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/value.rs

+4-4
Original file line numberDiff line numberDiff 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
/// ```
424424
impl 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
/// ```
449449
impl 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
/// ```
485485
impl<'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
/// ```
529529
impl<'a> IndexMut<&'a str> for JsonValue {

0 commit comments

Comments
 (0)