Skip to content

Commit f4703cc

Browse files
authored
Update for 1.9.0-alpha16 spec namespace changes
1 parent a41b4b2 commit f4703cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/about/spec.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ the keys corresponding to the matched components. In this way **spec** regexes a
249249

250250
[source,clojure]
251251
----
252-
user=> (require '[clojure.spec :as s])
252+
user=> (require '[clojure.spec.alpha :as s])
253253
(s/def ::even? (s/and integer? even?))
254254
(s/def ::odd? (s/and integer? odd?))
255255
(s/def ::a integer?)
@@ -270,7 +270,7 @@ user=> (s/conform s [42 11 13 15 {:a 1 :b 2 :c 3} 1 2 3 42 43 44 11])
270270

271271
==== conform/explain
272272
As you can see above, the basic operation for using specs is ``conform``, which takes a spec and a value and
273-
returns the conformed value or ``:clojure.spec/invalid`` if the value did not conform. When the value does not conform
273+
returns the conformed value or ``:clojure.spec.alpha/invalid`` if the value did not conform. When the value does not conform
274274
you can call ``explain`` or ``explain-data`` to find out why it didn't.
275275

276276
=== Defining specs
@@ -356,7 +356,7 @@ The return values of ``cat``, ``alt``, ``*``, ``+``, ``?``, ``&``. When nested t
356356
=== conform
357357
``conform`` is the basic operation for consuming specs, and does both validation and conforming/destructuring.
358358
Note that conforming is 'deep' and flows through all of the spec and regex operations, map specs etc.
359-
Since ``nil`` and ``false`` are legitimate conformed values, conform returns the distinguished ``:clojure.spec/invalid``
359+
Since ``nil`` and ``false`` are legitimate conformed values, conform returns the distinguished ``:clojure.spec.alpha/invalid``
360360
when a value cannot be made to conform. ``valid``? can be used instead as a fully-boolean predicate.
361361

362362
=== explain

0 commit comments

Comments
 (0)