File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4551,9 +4551,9 @@ If a test function has an error return type, any propagated errors will fail the
4551
4551
``` v
4552
4552
import strconv
4553
4553
4554
- fn test_atoi() ? {
4555
- assert strconv.atoi('1')? == 1
4556
- assert strconv.atoi('one')? == 1 // test will fail
4554
+ fn test_atoi() ! {
4555
+ assert strconv.atoi('1')! == 1
4556
+ assert strconv.atoi('one')! == 1 // test will fail
4557
4557
}
4558
4558
```
4559
4559
@@ -6738,7 +6738,7 @@ fn sh(cmd string) {
6738
6738
rmdir_all(' build' ) or {}
6739
6739
6740
6740
// Create build/, never fails as build/ does not exist
6741
- mkdir(' build' )?
6741
+ mkdir(' build' )!
6742
6742
6743
6743
// Move *.v files to build/
6744
6744
result := execute(' mv * .v build/' )
@@ -6749,7 +6749,7 @@ if result.exit_code != 0 {
6749
6749
sh(' ls' )
6750
6750
6751
6751
// Similar to:
6752
- // files := ls(' .' )?
6752
+ // files := ls(' .' )!
6753
6753
// mut count := 0
6754
6754
// if files.len > 0 {
6755
6755
// for file in files {
You can’t perform that action at this time.
0 commit comments