#Document function parameter

1 messages · Page 1 of 1 (latest)

sacred shadow
#

Is there a way document function parameters with /// ... so that generated docs would put text near the parameter definition?

mystic estuary
#
fn foo(
    /// docs here apply to the next param, `a` here
    a: u32
    /// and `b` here
    b: u32,
) void {}