diff options
author | awr1 <41453959+awr1@users.noreply.github.com> | 2018-08-26 10:42:57 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-08-26 17:42:57 +0200 |
commit | 50aa376e802d949f430eba64ecd9f6beb86f91df (patch) | |
tree | 0d8739e1a3fcc30585927931379bc3a69a75040d /doc | |
parent | b4edfa613b3adeaa091e8aee7d38d9c24fa4e32e (diff) | |
download | Nim-50aa376e802d949f430eba64ecd9f6beb86f91df.tar.gz |
Added to docs: warning string for {.deprecated.} pragma (#8783)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index 19a5355a2..739f464e0 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -6448,6 +6448,11 @@ The deprecated pragma is used to mark a symbol as deprecated: proc p() {.deprecated.} var x {.deprecated.}: char +This pragma can also take in an optional warning string to relay to developers. + +.. code-block:: nim + proc thing(x: bool) {.deprecated: "See arguments of otherThing()".} + It can also be used as a statement, in that case it takes a list of *renamings*. .. code-block:: nim @@ -6456,7 +6461,6 @@ It can also be used as a statement, in that case it takes a list of *renamings*. Stream = ref object {.deprecated: [TFile: File, PStream: Stream].} - noSideEffect pragma ------------------- The ``noSideEffect`` pragma is used to mark a proc/iterator to have no side |