Skip to content

Rustdoc hidden code example is incorrect #11645

Closed
@huonw

Description

@huonw

The example at the end of http://static.rust-lang.org/doc/master/rustdoc.html#defining-tests looks like

```rust

do spawn { fib(200); }
```

There should be the #-prefixed definition of fib in the empty line, since we're trying to demonstrate this functionality.

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