diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2023-08-14 22:27:36 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 06:27:36 +0200 |
commit | a660c17d309e2b077c610fd8c8c697944cff676d (patch) | |
tree | 054ef224e4088c4a376cad7c7ca508086e358024 /lib/std/private/since.nim | |
parent | 1927ae72d093d5e13bef6fd3fdf4700aa072f6bc (diff) | |
download | Nim-a660c17d309e2b077c610fd8c8c697944cff676d.tar.gz |
Markdown code blocks migration part 8 (#22478)
Diffstat (limited to 'lib/std/private/since.nim')
-rw-r--r-- | lib/std/private/since.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/private/since.nim b/lib/std/private/since.nim index 1a6dd02cb..720120f11 100644 --- a/lib/std/private/since.nim +++ b/lib/std/private/since.nim @@ -15,19 +15,19 @@ The emulation cannot be 100% faithful and to avoid adding too much complexity, template since*(version: (int, int), body: untyped) {.dirty.} = ## Evaluates `body` if the ``(NimMajor, NimMinor)`` is greater than ## or equal to `version`. Usage: - ## - ## .. code-block:: Nim + ## ```Nim ## proc fun*() {.since: (1, 3).} ## since (1, 3): fun() + ## ``` when (NimMajor, NimMinor) >= version: body template since*(version: (int, int, int), body: untyped) {.dirty.} = ## Evaluates `body` if ``(NimMajor, NimMinor, NimPatch)`` is greater than ## or equal to `version`. Usage: - ## - ## .. code-block:: Nim + ## ```Nim ## proc fun*() {.since: (1, 3, 1).} ## since (1, 3, 1): fun() + ## ``` when (NimMajor, NimMinor, NimPatch) >= version: body |