summaryrefslogtreecommitdiff
path: root/docs/std/fs.md
diff options
context:
space:
mode:
authorSteven <burnett@posteo.de>2026-01-25 23:54:29 +0000
committerSteven <burnett@posteo.de>2026-01-25 23:54:29 +0000
commit97d0583c92c733aa8497a99f5267d50151f6e965 (patch)
tree825c006266bf3a57ab4dbb2d3d7df2f9d9dcc21d /docs/std/fs.md
parenta5e8a3734fd850de53ad917d55ee5c2e73f39190 (diff)
fix(docs): replace remaining var references with let
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()}";
}