contributing docs: symbols need package prefix; changed allocStats to nimAllocStats (#13247)
This commit is contained in:
parent
4cbeddddcc
commit
981ffc912e
10 changed files with 23 additions and 9 deletions
|
|
@ -65,7 +65,7 @@ when hasAlloc and not defined(js):
|
|||
let stats2 = getAllocStats()
|
||||
echo $(stats2 - stats1)
|
||||
|
||||
when defined(allocStats):
|
||||
when defined(nimAllocStats):
|
||||
var stats: AllocStats
|
||||
template incStat(what: untyped) = inc stats.what
|
||||
proc getAllocStats*(): AllocStats = stats
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue