docgen_sample.nim 263 B

12345678910111213
  1. ## This module is a sample.
  2. import strutils
  3. proc helloWorld*(times: int) =
  4. ## Takes an integer and outputs
  5. ## as many indented "hello world!"s
  6. for i in 0 .. times-1:
  7. echo "hello world!".indent(2) # using indent to avoid `UnusedImport`
  8. helloWorld(5)