-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
autodocThe web application for interactive documentation and generation of its assets.The web application for interactive documentation and generation of its assets.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Milestone
Description
Zig Version
0.14.0-dev.1510+fb0028a0d
Steps to Reproduce and Observed Behavior
Given a function:
/// Appends the new subcommand to the list of subcommands.
///
/// ## Examples
///
/// ```zig
/// var app = App.init(allocator, "myapp", "My app description");
/// defer app.deinit();
///
/// var root = app.rootCommand();
///
/// var test = app.createCommand("test", "Run test");
/// try test.addArg(Arg.positional("FILE", null, null));
///
/// try root.addSubcommand(test);
/// ```
pub fn addSubcommand(self: *Command, new_subcommand: Command) !void { ... }This is what the source code of it looks like in the source page:

Expected Behavior
I expected correct rendering :)
Metadata
Metadata
Assignees
Labels
autodocThe web application for interactive documentation and generation of its assets.The web application for interactive documentation and generation of its assets.bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior