summary refs log blame commit diff stats
path: root/doc/docgen_sample.nim
blob: 7a167cb4572fc8a7e04770552387ee75e57b946f (plain) (tree)
1
2
3
4
5
6
7
8
9





                                 
                                     

                        
                                                                        

             
## This module is a sample.

import strutils

proc helloWorld*(times: int) =
  ## Takes an integer and outputs
  ## as many indented "hello world!"s

  for i in 0 .. times-1:
    echo "hello world!".indent(2) # using indent to avoid `UnusedImport`

helloWorld(5)