mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-26 09:21:00 +03:00
Update umka.html.markdown
Co-authored-by: Boris Verkhovskiy <boris.verk@gmail.com>
This commit is contained in:
parent
c6d089b9dc
commit
0a0ae973fa
@ -139,7 +139,7 @@ type Vector2 = struct {
|
|||||||
x, y: real
|
x, y: real
|
||||||
}
|
}
|
||||||
|
|
||||||
fn newVector2(x, y: read): Vector2 {
|
fn newVector2(x, y: real): Vector2 {
|
||||||
// Structure literals
|
// Structure literals
|
||||||
return Vector2{ x, y }
|
return Vector2{ x, y }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user