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:
parent
3308313167
commit
82f7597a0c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user