ast, math.complex: add missing docstrings for the methods in types.v (#20281)

This commit is contained in:
Sudoer 2023-12-28 00:48:46 +05:30 committed by GitHub
parent 6a04febbf8
commit 34858c3265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 7 deletions

View file

@ -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