Skip to content

Commit e2ed15a

Browse files
authored
Merge pull request #1170 from rafd/fix-doc-assert-example
Fix try/catch example in README
2 parents dec2227 + 3063a7c commit e2ed15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ Or if you already have a malli validation exception (e.g. in a catch form):
812812
(require '[malli.error :as me])
813813

814814
(try
815-
(m/validate Address {:not "an address"})
815+
(m/assert Address {:not "an address"})
816816
(catch Exception e
817817
(-> e ex-data :data :explain me/humanize)))
818818
```

0 commit comments

Comments
 (0)