From 1156b2354d13efd4f3c7057ed0d24f1d5bc917c5 Mon Sep 17 00:00:00 2001 From: Dmitry Dygalo Date: Sun, 17 Nov 2024 20:53:49 +0100 Subject: [PATCH] docs: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?;