Doc comments
Silk supports both line and block doc comments. They attach to the following declaration (like many C/Rust-style doc systems).
Full reference: doc comments.
Syntax#
/// Line doc comment
fn main () -> int { return 0; }
/**
* Block doc comment
*
* @example silk
* fn main () -> int { return 0; }
*/
fn other () -> int { return 0; }
See also#
- Full reference: doc comments
Source repository · Edit this page · View Markdown