summaryrefslogtreecommitdiff
path: root/docs/std/fs.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/std/fs.md')
-rw-r--r--docs/std/fs.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/std/fs.md b/docs/std/fs.md
index 8aea0f5..42d10c4 100644
--- a/docs/std/fs.md
+++ b/docs/std/fs.md
@@ -9,10 +9,10 @@ import "std/fs.zc"
fn main() {
// Reading a file
- var res = File::open("example.txt", "r");
+ let res = File::open("example.txt", "r");
if (res.is_ok()) {
- var file = res.unwrap();
- var content = file.read_to_string();
+ let file = res.unwrap();
+ let content = file.read_to_string();
if (content.is_ok()) {
println "{content.unwrap()}";
}