From cc7c9d5a1bce85ed233979713fb0c713b79a3447 Mon Sep 17 00:00:00 2001 From: Mikhail Kuzmin Date: Thu, 9 Jan 2025 12:44:59 +0400 Subject: [PATCH] var -> variable Co-authored-by: Gleb Eliseev --- src/darkleaf/di/core.clj | 4 ++-- test/darkleaf/di/tutorial/x_inspect_test.clj | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/darkleaf/di/core.clj b/src/darkleaf/di/core.clj index 787b27e..eff9718 100644 --- a/src/darkleaf/di/core.clj +++ b/src/darkleaf/di/core.clj @@ -639,8 +639,8 @@ (demolish [_ _]) p/FactoryDescription (description [_] - {:kind :service - :var variable}))) + {:kind :service + :variable variable}))) (defn- var->service [variable] (let [deps (dependencies-fn variable)] diff --git a/test/darkleaf/di/tutorial/x_inspect_test.clj b/test/darkleaf/di/tutorial/x_inspect_test.clj index c3d342b..24f8d6f 100644 --- a/test/darkleaf/di/tutorial/x_inspect_test.clj +++ b/test/darkleaf/di/tutorial/x_inspect_test.clj @@ -31,8 +31,8 @@ {:key `c :dependencies {`a :required `b :optional}} {:key `a - :description {:kind :service - :var #'a}} + :description {:kind :service + :variable #'a}} {:key `b :dependencies {`a :required}}] (di/inspect `c)))) @@ -48,7 +48,7 @@ :middleware ::di/update-key :target `a}} {:key `a+di-update-key#0-target - :description {:kind :service - :var #'a}} + :description {:kind :service + :variable #'a}} {:key `a+di-update-key#0-f}] (di/inspect `a (di/update-key `a str)))))