From 372b01711e2a4d3f0672f75aaa0895147b928cfc Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 7 Nov 2019 12:02:26 +0100 Subject: added 'since' template for further stdlib additions --- lib/system/io.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/system/io.nim') diff --git a/lib/system/io.nim b/lib/system/io.nim index fcdfa79c0..7010a7fdb 100644 --- a/lib/system/io.nim +++ b/lib/system/io.nim @@ -685,7 +685,7 @@ proc writeFile*(filename, content: string) {.tags: [WriteIOEffect], benign.} = else: sysFatal(IOError, "cannot open: " & filename) -proc writeFile*(filename: string, content: openArray[byte]) = +proc writeFile*(filename: string, content: openArray[byte]) {.since: (1, 1).} = ## Opens a file named `filename` for writing. Then writes the ## `content` completely to the file and closes the file afterwards. ## Raises an IO exception in case of an error. -- cgit 1.4.1-2-gfad0