1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cleanup: fix old usages of os.write_file/2? to os.write_file/2!

This commit is contained in:
Delyan Angelov
2023-01-18 03:18:05 +02:00
parent 6a9688ce9d
commit 2c78078814
4 changed files with 10 additions and 10 deletions

View File

@@ -5324,7 +5324,7 @@ Full list of builtin options:
import os
fn main() {
embedded_file := $embed_file('v.png')
os.write_file('exported.png', embedded_file.to_string())?
os.write_file('exported.png', embedded_file.to_string())!
}
```
@@ -5348,7 +5348,7 @@ Currently only one compression type is supported: `zlib`
import os
fn main() {
embedded_file := $embed_file('v.png', .zlib) // compressed using zlib
os.write_file('exported.png', embedded_file.to_string())?
os.write_file('exported.png', embedded_file.to_string())!
}
```