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

parser: deprecate short struct init (#10842)

This commit is contained in:
Daniel Däschle
2021-07-20 10:17:08 +02:00
committed by GitHub
parent dc045806f9
commit ad3835b598
85 changed files with 234 additions and 238 deletions

View File

@ -21,7 +21,7 @@ pub fn random_vector_in_circle() Vector {
theta := rand.f32n(2 * math.pi)
y := rand.f32()
return {
return Vector{
x: f32(y * math.sin(theta))
y: f32(y * math.cos(theta))
}