Skip to content

Commit

Permalink
Fix a couple small documentation errors with formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhaines committed Apr 23, 2022
1 parent e787340 commit 5febe85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/defined.cr
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ end
# if_version?("Crystal", :>, "1.0.0") do
# # Do a thing that only works on Crystal 1.0.0 and later
# end
# ```
#
# #### Caveats
#
Expand Down Expand Up @@ -256,6 +257,8 @@ macro if_version?(const, comparison, value, &code)
{% end %}
end

# See the documentation for `#if_version?`.
#
macro unless_version?(const, comparison, value, &code)
{%
parts = [] of String
Expand Down

0 comments on commit 5febe85

Please sign in to comment.