docstring for module docstring for function
(x: i64, y: i64)
| 2 | |
| 3 | /// docstring for function |
| 4 | fn multiply(x: i64, y: i64) -> i64 { |
| 5 | |
| 6 | // one line comment |
| 7 | x * y |
| 8 | /* multiline comment explaining |
| 9 | * that for returning a value |
| 10 | * an expression as last line is enough |
| 11 | */ |
| 12 | } |
| 13 | |
| 14 | |
| 15 | fn main() { |