diff --git a/docs/source/getting-started/error-handling.md b/docs/source/getting-started/error-handling.md index c8578ad62..1c3fc28a6 100644 --- a/docs/source/getting-started/error-handling.md +++ b/docs/source/getting-started/error-handling.md @@ -221,7 +221,7 @@ class async Main { file.read_all(bytes).expect('failed to read the file') STDOUT.new.write_bytes(bytes).expect('failed to write to STDOUT') - let _ = remove(file.path) + let _ = file.path.remove_file } } ```