Skip to content

Document the name of the crate that is the playground. #1204

@Apersoma

Description

@Apersoma

Currently is it not really possible to write actual doc tests because you can't import the thing your documenting.
i.e.

/// foo does foo things.
///
/// # Example
/// ```
/// use <what crate name?>::foo;
///
/// assert_eq!(foo(3u8), vec![92f64]);
/// ```
pub fn foo(x: u8) -> Vec<f64> {
    ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions