contributing docs: symbols need package prefix; changed allocStats to nimAllocStats (#13247)

This commit is contained in:
Timothee Cour
2020-01-25 01:27:29 -07:00
committed by Andreas Rumpf
parent 4cbeddddcc
commit 981ffc912e
10 changed files with 23 additions and 9 deletions

View File

@@ -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