Skip to content

Commit d86cd10

Browse files
committed
printer functionality working. Unit tests for cljs pending
1 parent 9c7294c commit d86cd10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lambdaisland/deep_diff.cljc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
[expected actual]
2020
(diff/diff expected actual))
2121

22-
(defn printer
22+
(defn build-printer
2323
"Construct a Puget printer instance suitable for printing diffs.
2424
2525
Extra options are passed on to Puget. Extra type handlers can be provides as
2626
`:extra-handlers` (a map from symbol to function), or by
2727
using [[lambdaisland.deep-diff.printer/register-print-handler!]]"
2828
([]
29-
(printer {}))
29+
(build-printer {}))
3030
([opts]
3131
(printer/puget-printer opts)))
3232

@@ -36,7 +36,7 @@
3636
Pretty print a diffed data structure, as obtained from [[diff]]. Optionally
3737
takes a Puget printer instance, see [[printer]]."
3838
([diff]
39-
(pretty-print diff (printer)))
39+
(pretty-print diff (build-printer)))
4040
([diff printer]
4141
(-> diff
4242
(printer/format-doc printer)

0 commit comments

Comments
 (0)