15 lines
105 B
V
15 lines
105 B
V
|
struct St {
|
||
|
mut:
|
||
|
e int
|
||
|
}
|
||
|
|
||
|
fn f(mut x St) {
|
||
|
x.e++
|
||
|
println(x)
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
a := St{e: 2}
|
||
|
f(mut a)
|
||
|
}
|