Skip to content

Rustdoc hidden code example is incorrect #11645

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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