Browse Source

More examples

Sergey Lyubka 11 years ago
parent
commit
ec3b9da219
1 changed files with 2 additions and 2 deletions
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -87,8 +87,8 @@ Return: pointer to the found token, or NULL on failure.
     ASSERT(find_json_token(tokens, "ports") == &tokens[2]);
     ASSERT(find_json_token(tokens, "ports[0]") == &tokens[3]);
     ASSERT(find_json_token(tokens, "ports[1]") == &tokens[4]);
-    ASSERT(find_json_token(tokens, "ports[3]") == NULL);
-    ASSERT(find_json_token(tokens, "foo.bar") == NULL);
+    ASSERT(find_json_token(tokens, "ports[3]") == NULL);  // Outside boundaries
+    ASSERT(find_json_token(tokens, "foo.bar") == NULL);   // Nonexistent
 
 # Licensing