Skip to content

Commit 4262936

Browse files
taylorwoodpuredanger
authored andcommitted
Fix two typos
1 parent 3f39e6b commit 4262936

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/guides/spec.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Let's examine the output of the final example more closely. First note that ther
177177
* val - the value in the user's input that does not match
178178
* spec - the spec that was being evaluated
179179
* at - a path (a vector of keywords) indicating the location within the spec where the error occurred - the tags in the path correspond to any tagged part in a spec (the alternatives in an `or` or `alt`, the parts of a `cat`, the keys in a map, etc)
180-
* predicate - the actual predicate that was not satsified by val
180+
* predicate - the actual predicate that was not satisfied by val
181181
* in - the key path through a nested data val to the failing value. In this example, the top-level value is the one that is failing so this is essentially an empty path and is omitted.
182182

183183
For the first reported error we can see that the value `:foo` did not satisfy the predicate `string?` at the path `:name` in the spec `::name-or-id`. The second reported error is similar but fails on the `:id` path instead. The actual value is a keyword so neither is a match.
@@ -527,7 +527,7 @@ The data is conformed as a map with the tags as keys. We can use `explain` to ex
527527
;; val: () fails spec: ::ingredient at: [:unit] predicate: keyword?, Insufficient input
528528
----
529529

530-
Let's now see the various occurence operators `*`, `+`, and `?`:
530+
Let's now see the various occurrence operators `*`, `+`, and `?`:
531531

532532
[source,clojure]
533533
----

0 commit comments

Comments
 (0)