Skip to content

Commit

Permalink
formatting example
Browse files Browse the repository at this point in the history
  • Loading branch information
jlangch committed Sep 13, 2023
1 parent fee4fed commit ea8b053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/readme/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ are available with Venice 1.11.x.
imaginary :long])

(defn sum [^:foo/complex x ^:foo/complex y]
(complex. (+ (:real x) (:imaginary x)) (+ (:real y) (:imaginary y))))
(complex. (+ (:real x) (:imaginary x))
(+ (:real y) (:imaginary y))))

(sum (complex. 1 2) (complex. 5 8)))
```
Expand Down

0 comments on commit ea8b053

Please sign in to comment.