mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ast, math.complex: add missing docstrings for the methods in types.v (#20281)
This commit is contained in:
parent
6a04febbf8
commit
34858c3265
2 changed files with 20 additions and 7 deletions
|
@ -12,9 +12,9 @@ pub mut:
|
|||
im f64
|
||||
}
|
||||
|
||||
// complex returns a complex struct with the given `re`al and `im`aginary values
|
||||
pub fn complex(re f64, im f64) Complex {
|
||||
return Complex{re, im}
|
||||
// complex returns a complex struct with the given `real` and `imaginary` values
|
||||
pub fn complex(real f64, imaginary f64) Complex {
|
||||
return Complex{real, imaginary}
|
||||
}
|
||||
|
||||
// To String method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue