Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Book copies code not displayed due to mdbook bug #32

@perrycate

Description

@perrycate

https://rustwasm.github.io/book/hello-world.html

Some code on this page is incorrect, and is different from the source code. Presumably it was changed at some point and the site wasn't updated? Here is the offending snippet:

# #![allow(unused_variables)]
#fn main() {
#[no_mangle]
pub extern fn add_one(a: u32) -> u32 {
    a + 1
}
#}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream blockBlocked by something we do not control

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions