Skip to content

Commit

Permalink
var -> variable
Browse files Browse the repository at this point in the history
Co-authored-by: Gleb Eliseev <[email protected]>
  • Loading branch information
darkleaf and devleifr committed Jan 9, 2025
1 parent 41f8f26 commit cc7c9d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/darkleaf/di/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
8 changes: 4 additions & 4 deletions test/darkleaf/di/tutorial/x_inspect_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand All @@ -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)))))

0 comments on commit cc7c9d5

Please sign in to comment.