We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65abfa8 commit eb6dd82Copy full SHA for eb6dd82
doc/docs.md
@@ -3826,10 +3826,11 @@ fn (err PathError) msg() string {
3826
return 'Failed to open path: ${err.path}'
3827
}
3828
3829
-fn try_open(path string) ? {
3830
- return IError(PathError{
+fn try_open(path string) ! {
+ // V automatically casts this to IError
3831
+ return PathError{
3832
path: path
- })
3833
+ }
3834
3835
3836
fn main() {
0 commit comments