fixes #9120
This commit is contained in:
parent
d91d1865b8
commit
9526009e0e
3 changed files with 2 additions and 12 deletions
|
|
@ -3147,7 +3147,7 @@ when not defined(JS): #and not defined(nimscript):
|
|||
result = x.len - y.len
|
||||
|
||||
when defined(nimscript):
|
||||
proc readFile*(filename: string): string {.tags: [ReadIOEffect], benign.}
|
||||
proc readFile*(filename: string): TaintedString {.tags: [ReadIOEffect], benign.}
|
||||
## Opens a file named `filename` for reading, calls `readAll
|
||||
## <#readAll>`_ and closes the file afterwards. Returns the string.
|
||||
## Raises an IO exception in case of an error. If # you need to call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue