diff --git a/README.md b/README.md index e1c1075e..c63f7d23 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ fn main() -> Result<(), Box> { // One-off validation assert!(jsonschema::is_valid(&schema, &instance)); - assert!(jsonschema::validate(&schema, &instance)); + assert!(jsonschema::validate(&schema, &instance).is_ok()); // Build & reuse (faster) let validator = jsonschema::validator_for(&schema)?;