summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-06-23 20:50:35 +0200
committerAraq <rumpf_a@web.de>2012-06-23 20:50:35 +0200
commit2d8138768af447742e1e2a6058bdb4d9273600c3 (patch)
treed2d88f7a236d94f3c270de60f50ae6d7c3f2ee87
parent3c985184876f47127dc055d7e7661f228e261d22 (diff)
downloadNim-2d8138768af447742e1e2a6058bdb4d9273600c3.tar.gz
system.nim: documentation fixes
-rwxr-xr-xlib/system.nim10
-rwxr-xr-xtodo.txt3
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/system.nim b/lib/system.nim
index b57b2fec5..eb3531b60 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2212,9 +2212,9 @@ proc getTypeInfo*[T](x: T): pointer {.magic: "GetTypeInfo".}
 proc slurp*(filename: string): string {.magic: "Slurp".}
 proc staticRead*(filename: string): string {.magic: "Slurp".}
   ## compile-time ``readFile`` proc for easy `resource`:idx: embedding:
-  ## .. code-block:: nimrod
   ##
-  ##   const myResource = staticRead"mydatafile.bin"
+  ## .. code-block:: nimrod
+  ##     const myResource = staticRead"mydatafile.bin"
   ##
   ## ``slurp`` is an alias for ``staticRead``.
 
@@ -2225,10 +2225,10 @@ proc staticExec*(command: string, input = ""): string {.
   ## executes an external process at compile-time.
   ## if `input` is not an empty string, it will be passed as a standard input
   ## to the executed program.
-  ## .. code-block:: nimrod
   ##
-  ##   const buildInfo = "Revision " & staticExec("git rev-parse HEAD") & 
-  ##                     "\nCompiled on " & staticExec("uname -v")
+  ## .. code-block:: nimrod
+  ##     const buildInfo = "Revision " & staticExec("git rev-parse HEAD") & 
+  ##                       "\nCompiled on " & staticExec("uname -v")
   ##
   ## ``gorge`` is an alias for ``staticExec``.
 
diff --git a/todo.txt b/todo.txt
index b8d35c281..0ac126362 100755
--- a/todo.txt
+++ b/todo.txt
@@ -1,6 +1,8 @@
 version 0.9.0
 =============
 
+- change how comments are part of the AST
+
 Debug GC session:
 - bug: stress testing basic method example (eval example) 
   without ``-d:release`` leaks memory?
@@ -23,7 +25,6 @@ New pragmas:
 - document 'do' notation
 - unsigned ints and bignums; requires abstract integer literal type: 
   use tyInt+node for that
-- change how comments are part of the AST
 - document nimdoc properly finally
 - rethink the syntax: distinction between expr and stmt is unfortunate; 
   indentation handling is quite complex too; problem with exception handling