;; This is an example of setting a docstring during a def in
;; Clojure 1.2. In 1.3, def takes an optional docstring directly.
user> (def ^{:doc "The nuge rocks"} ted-nugent)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
nil
The nuge rocks
;; This is an example of setting a docstring during a def in
;; Clojure 1.2. In 1.3, def takes an optional docstring directly.
user> (def ^{:doc "The nuge rocks"} ted-nugent)
#'user/ted-nugent
user> (doc ted-nugent)
-------------------------
user/ted-nugent
nil
The nuge rocks
Comments top
No comments for def. Log in to add a comment.