Language / Doc comments

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#

Source repository · Edit this page · View Markdown

Quick links

Type to search across the site. Use the up and down arrow keys to choose a result, Enter to open it, and Escape to close.