mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
contributing docs: symbols need package prefix; changed allocStats to nimAllocStats (#13247)
This commit is contained in:
committed by
Andreas Rumpf
parent
4cbeddddcc
commit
981ffc912e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user