diff options
| author | Zuhaitz <zuhaitz.zechhub@gmail.com> | 2026-01-26 00:39:31 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 00:39:31 +0000 |
| commit | ca08979910e5a234a2423e4448ad0e284bf4f508 (patch) | |
| tree | e09702f7b0850feb00a6af7f315bff7448c2ed26 /docs/std/fs.md | |
| parent | 6bef876bf900458a36260ca3fe96e23b06749d74 (diff) | |
| parent | 97d0583c92c733aa8497a99f5267d50151f6e965 (diff) | |
Merge pull request #132 from Burnett01/fix/var-const-remains-in-examples
Housekeeping: Fix var/const remains in examples and docs
Diffstat (limited to 'docs/std/fs.md')
| -rw-r--r-- | docs/std/fs.md | 6 |
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()}"; } |
