diff --git a/content/procvars.md b/content/procvars.md index 53c6ad1..12a6921 100644 --- a/content/procvars.md +++ b/content/procvars.md @@ -20,10 +20,10 @@ $ nim c -r filterclosure.nim @[64, 128, 256] ``` -Existing procedures can also be passed as functions, but only if they are annotated with the `{.procvar.}` pragma. +Existing procedures can also be passed as functions, but only if they are annotated with the `{.procvar.}` pragma. This is because there may be default parameters, which must be specially handled by the compiler. ``` nimrod proc greaterThan32(x: int): bool {.procvar.} = x > 32 echo powersOfTwo.filter(greaterThan32) -``` \ No newline at end of file +```