summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Smith <smith.andrew.l@gmail.com>2019-10-01 23:43:38 -0500
committerVarriount <Varriount@users.noreply.github.com>2019-10-02 00:43:38 -0400
commit0d94ee15c0ab07057dc9a0915d182917f3653c66 (patch)
treefa6fd41cf15748cd60778042bd71ca4058cb7a17
parentc20778d2d3faa1ad1e9b11a54899b5eef5ac6bca (diff)
downloadNim-0d94ee15c0ab07057dc9a0915d182917f3653c66.tar.gz
Updated the code example in the os module to use better grammar. (#12328)
-rw-r--r--lib/pure/os.nim23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 45d28c6ee..03173708b 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -15,19 +15,20 @@
 ##   import os
 ##
 ##   let myFile = "/path/to/my/file.nim"
-##
-##   let splittedPath = splitPath(myFile)
-##   assert splittedPath.head == "/path/to/my"
-##   assert splittedPath.tail == "file.nim"
-##
+## 
+##   let pathSplit = splitPath(myFile)
+##   assert pathSplit.head == "/path/to/my"
+##   assert pathSplit.tail == "file.nim"
+## 
 ##   assert parentDir(myFile) == "/path/to/my"
-##
-##   let splittedFile = splitFile(myFile)
-##   assert splittedFile.dir == "/path/to/my"
-##   assert splittedFile.name == "file"
-##   assert splittedFile.ext == ".nim"
-##
+## 
+##   let fileSplit = splitFile(myFile)
+##   assert fileSplit.dir == "/path/to/my"
+##   assert fileSplit.name == "file"
+##   assert fileSplit.ext == ".nim"
+## 
 ##   assert myFile.changeFileExt("c") == "/path/to/my/file.c"
+
 ##
 ##
 ## **See also:**