Skip to content

Typo in tutorial #1615

Closed
Closed
@kosta

Description

@kosta

In http://doc.rust-lang.org/doc/tutorial.html: "

resource file_desc(fd: int) {
    close_file_desc(fd);
}

This defines a type file_desc and a constructor of the same name, which takes an integer."

Shouldn't this define a destructor by the same name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions