Skip to content

Commit d9497cf

Browse files
committed
[#181] Add an example without version
1 parent 239ba3a commit d9497cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,7 @@ was deprecated in case of versioned software (e.g. a library) or simply
19071907

19081908
[source,clojure]
19091909
----
1910+
;; in case we have a version
19101911
(def ^{:deprecated "0.5"} foo
19111912
"Use `bar` instead.
19121913
42)
@@ -1917,6 +1918,10 @@ was deprecated in case of versioned software (e.g. a library) or simply
19171918
19181919
(defn ^{:deprecated "0.5"} foo
19191920
(bar))
1921+
1922+
;; otherwise
1923+
(defn ^:deprecated foo
1924+
(bar))
19201925
----
19211926

19221927
TIP: If you're into SemVer, it's a good idea to omit the patch version.

0 commit comments

Comments
 (0)