Skip to content

Hiding parts of examples #73

@steveklabnik

Description

@steveklabnik

Rustdoc has a feature that allows you to hide parts of examples:

fn another_function(x: i32) {
# }

This will hide the closing }, but allow the example to compile. This is really useful for hiding parts of examples which confuse the point, yet allow them to still compile.

2015-12-17-125058_223x62_scrot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions