From 0fff06ec6b7fc16e51bd503ef6e1ccbac4a5a1af Mon Sep 17 00:00:00 2001 From: Stig Brautaset Date: Mon, 9 Oct 2023 13:14:06 +0100 Subject: [PATCH] Correct "effects" to "affects" in comments & docs Their usage is commonly confused, but "affect" is usually a verb and "effect" is usually a noun. In this case we want the verb. See also https://www.merriam-webster.com/grammar/affect-vs-effect-usage-difference --- doc/coercion/malli_coercion.md | 2 +- examples/ring-malli-lite-swagger/src/example/server.clj | 2 +- examples/ring-malli-swagger/src/example/server.clj | 2 +- modules/reitit-malli/src/reitit/coercion/malli.cljc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/coercion/malli_coercion.md b/doc/coercion/malli_coercion.md index fe4a17e5..c7ecc34d 100644 --- a/doc/coercion/malli_coercion.md +++ b/doc/coercion/malli_coercion.md @@ -84,7 +84,7 @@ Using `create` with options to create the coercion instead of `coercion`: :validate true ;; top-level short-circuit to disable request & response coercion :enabled true - ;; strip-extra-keys (effects only predefined transformers) + ;; strip-extra-keys (affects only predefined transformers) :strip-extra-keys true ;; add/set default values :default-values true diff --git a/examples/ring-malli-lite-swagger/src/example/server.clj b/examples/ring-malli-lite-swagger/src/example/server.clj index 09e632b1..e6cddf5a 100644 --- a/examples/ring-malli-lite-swagger/src/example/server.clj +++ b/examples/ring-malli-lite-swagger/src/example/server.clj @@ -83,7 +83,7 @@ :error-keys #{#_:type :coercion :in :schema :value :errors :humanized #_:transformed} ;; schema identity function (default: close all map schemas) :compile mu/closed-schema - ;; strip-extra-keys (effects only predefined transformers) + ;; strip-extra-keys (affects only predefined transformers) :strip-extra-keys true ;; add/set default values :default-values true diff --git a/examples/ring-malli-swagger/src/example/server.clj b/examples/ring-malli-swagger/src/example/server.clj index c5fafd19..917d9b9e 100644 --- a/examples/ring-malli-swagger/src/example/server.clj +++ b/examples/ring-malli-swagger/src/example/server.clj @@ -123,7 +123,7 @@ :error-keys #{#_:type :coercion :in :schema :value :errors :humanized #_:transformed} ;; schema identity function (default: close all map schemas) :compile mu/closed-schema - ;; strip-extra-keys (effects only predefined transformers) + ;; strip-extra-keys (affects only predefined transformers) :strip-extra-keys true ;; add/set default values :default-values true diff --git a/modules/reitit-malli/src/reitit/coercion/malli.cljc b/modules/reitit-malli/src/reitit/coercion/malli.cljc index 89dce54c..583a8db3 100644 --- a/modules/reitit-malli/src/reitit/coercion/malli.cljc +++ b/modules/reitit-malli/src/reitit/coercion/malli.cljc @@ -97,7 +97,7 @@ :validate true ;; top-level short-circuit to disable request & response coercion :enabled true - ;; strip-extra-keys (effects only predefined transformers) + ;; strip-extra-keys (affects only predefined transformers) :strip-extra-keys true ;; add/set default values :default-values true