summary refs log tree commit diff stats
path: root/lib/std
diff options
context:
space:
mode:
authorkonsumlamm <44230978+konsumlamm@users.noreply.github.com>2021-03-29 12:44:31 +0200
committerGitHub <noreply@github.com>2021-03-29 12:44:31 +0200
commit9e3960e83dea1b00fe670fc78e74cfd6fafd53b2 (patch)
tree677133a5c177715711e7b4c90366da3512e97c13 /lib/std
parentab57e7f244fb44fbd283de1fcb16c9c9a6fece42 (diff)
downloadNim-9e3960e83dea1b00fe670fc78e74cfd6fafd53b2.tar.gz
Small doc improvements for `std/with` (#17556)
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/with.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/with.nim b/lib/std/with.nim
index 79afd61a4..c7338b4e4 100644
--- a/lib/std/with.nim
+++ b/lib/std/with.nim
@@ -12,15 +12,16 @@
 ## and https://github.com/nim-lang/RFCs/issues/192 for details leading to this
 ## particular design.
 ##
-## **Since** version 1.2.
+## **Since:** version 1.2.
 
 import macros, private / underscored_calls
 
 macro with*(arg: typed; calls: varargs[untyped]): untyped =
-  ## This macro provides the `chaining`:idx: of function calls.
+  ## This macro provides `chaining`:idx: of function calls.
   ## It does so by patching every call in `calls` to
   ## use `arg` as the first argument.
-  ## **This evaluates `arg` multiple times!**
+  ##
+  ## .. caution:: This evaluates `arg` multiple times!
   runnableExamples:
     var x = "yay"
     with x: