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

                           
                   


                                 
                                     

                        
                                                                        

             
## This module is a sample.

import std/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)