[other] documentation: deprecation comments are now auto-generated

This commit is contained in:
narimiran 2019-06-19 14:21:46 +02:00
commit cf47c2c60c
2 changed files with 1 additions and 21 deletions

View file

@ -847,9 +847,7 @@ template mapIt*(s: typed, op: untyped): untyped =
result
template mapIt*(s, typ, op: untyped): untyped {.error:
"Use 'mapIt(seq1, op)' - without specifying the type of the returned seqence".} =
## **Deprecated since version 0.12.0:** Use the `mapIt(seq1, op) template
## <#mapIt.t,typed,untyped>`_ instead.
"Deprecated since v0.12; Use 'mapIt(seq1, op)' - without specifying the type of the returned seqence".} =
var result: seq[typ] = @[]
for it {.inject.} in items(s):
result.add(op)