mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
Fix links for succ/pred/inc/dec in system docs (#24363)
Links for succ/pred/inc/dec were incorrect since they link to a symbol with `int` as their second type. Uses local referencing instead so that it links to the correct symbol. Doesn't change the other links since they worked and doing the same local referencing for `high`/`low` would've make them link to the group of procs instead of the specific ones for ordinals
This commit is contained in:
@@ -144,10 +144,10 @@ types, as well as their subtypes.
|
||||
===================== =======================================
|
||||
Proc Usage
|
||||
===================== =======================================
|
||||
`succ<#succ,T,int>`_ Successor of the value
|
||||
`pred<#pred,T,int>`_ Predecessor of the value
|
||||
`inc<#inc,T,int>`_ Increment the ordinal
|
||||
`dec<#dec,T,int>`_ Decrement the ordinal
|
||||
succ_ Successor of the value
|
||||
pred_ Predecessor of the value
|
||||
inc_ Increment the ordinal
|
||||
dec_ Decrement the ordinal
|
||||
`high<#high,T>`_ Return the highest possible value
|
||||
`low<#low,T>`_ Return the lowest possible value
|
||||
`ord<#ord,T>`_ Return `int` value of an ordinal value
|
||||
|
||||
Reference in New Issue
Block a user