Skip to content

Commit b989bcf

Browse files
authored
Merge pull request #1009 from frenchy64/patch-3
Fix doc typos in function-schemas.md
2 parents 1d6efc2 + 56f4b55 commit b989bcf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/function-schemas.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Explanation why it is not valid:
158158

159159
Smallest failing invocation is `(str 0 0)`, which returns `"00"`, which is not an `:int`. Looks good.
160160

161-
But, why `mg/function-checker` is not enabled by default? The reason is that it uses generartive testing, which is orders of magnitude slower than normal validation and requires an extra dependency to `test.check`, which would make `malli.core` much heavier. This would be expecially bad for CLJS bundle size.
161+
But, why `mg/function-checker` is not enabled by default? The reason is that it uses generative testing, which is orders of magnitude slower than normal validation and requires an extra dependency to `test.check`, which would make `malli.core` much heavier. This would be especially bad for CLJS bundle size.
162162

163163
### Function Guards
164164

@@ -315,9 +315,9 @@ Generating multi-arity functions:
315315

316316
### Instrumentation
317317

318-
Besides testing function schemas as values, we can also intrument functions to enable runtime validation of arguments and return values.
318+
Besides testing function schemas as values, we can also instrument functions to enable runtime validation of arguments and return values.
319319

320-
Simplest way to do this is to use `m/-instrument` which takes options map and a function and returns a instrumented function. Valid options include:
320+
Simplest way to do this is to use `m/-instrument` which takes an options map and a function and returns an instrumented function. Valid options include:
321321

322322
| key | description |
323323
| ----------|-------------|
@@ -561,7 +561,7 @@ Execution error (ExceptionInfo) at malli.core/-exception (core.cljc:138).
561561

562562
### Defn Instrumentation
563563

564-
The function (Var) registry is passive and doesn't do anything by itself. To instrument the Vars based on the registry, there is the `malli.instrument` namespace. Var instrumentations focus is for development time, but can also be used for production builds.
564+
The function (Var) registry is passive and doesn't do anything by itself. To instrument the Vars based on the registry, there is the `malli.instrument` namespace. Var instrumentation is intended for development time, but can also be used for production builds.
565565

566566
```clojure
567567
(require '[malli.instrument :as mi])
@@ -804,4 +804,4 @@ Here's the same code in [Cursive IDE](https://cursive-ide.com/) with [clj-kondo]
804804
## Future work
805805

806806
* [support Schema defn syntax](https://github.com/metosin/malli/issues/125)
807-
* better integration with [clj-kondo](https://github.com/clj-kondo/clj-kondo) and [clojure-lsp](https://github.com/clojure-lsp/clojure-lsp) for enchanced DX.
807+
* better integration with [clj-kondo](https://github.com/clj-kondo/clj-kondo) and [clojure-lsp](https://github.com/clojure-lsp/clojure-lsp) for enhanced DX.

0 commit comments

Comments
 (0)