add struct intialization
This commit is contained in:
parent
19fd9daebf
commit
c2499f96c9
5 changed files with 85 additions and 5 deletions
|
@ -18,6 +18,7 @@ fn main(a int) int {
|
|||
println(50)
|
||||
}
|
||||
|
||||
|
||||
a && b
|
||||
a || b
|
||||
|
||||
|
@ -35,10 +36,11 @@ fn main(a int) int {
|
|||
|
||||
return 23
|
||||
|
||||
//p := Point{
|
||||
// x: 10
|
||||
// y: 20
|
||||
//}
|
||||
p := Point.{
|
||||
x: 10
|
||||
y: 20
|
||||
}
|
||||
|
||||
//println(p.x)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue