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:
@@ -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())!
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user