fixed wrong argument order in docs template

...next up: using partials to share this stuff between docs and
examples templates (you know, DRY and all)