mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
all: update attributes to use new syntax
This commit is contained in:
parent
dd81cb98c6
commit
757929392e
739 changed files with 2982 additions and 2982 deletions
|
@ -2,12 +2,12 @@ module test
|
|||
|
||||
import math
|
||||
|
||||
[export: 'square']
|
||||
@[export: 'square']
|
||||
fn square(i int) int {
|
||||
return i * i
|
||||
}
|
||||
|
||||
[export: 'sqrt_of_sum_of_squares']
|
||||
@[export: 'sqrt_of_sum_of_squares']
|
||||
fn sqrt_of_sum_of_squares(x f64, y f64) f64 {
|
||||
return math.sqrt(x * x + y * y)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue