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

ci: fix failing v check-md doc/docs.md

This commit is contained in:
Delyan Angelov 2022-07-06 15:52:18 +03:00
parent 3308313167
commit 82f7597a0c
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -1498,9 +1498,9 @@ x := Abc{
if x.bar is MyStruct {
// x.bar is automatically casted
println(x.bar)
}
else if x.bar is MyStruct2 as new_var {
// you can use `as` to create aliases
} else if x.bar is MyStruct2 {
new_var := x.bar as MyStruct2
// ... or you can use `as` to create a type cast an alias manually:
println(new_var)
}
match x.bar {