Skip to content

A lack of semicolon - is it a bug? #183

Closed
@justanotheranonymoususer

Description

https://github.com/japaric/rust-by-example/blob/master/examples/tuples/tuples.rs#L33-L34

Two of the last printlns aren't followed by a semicolon. Is it intended?

I'm just learning rust, but why does it even compile? In fact, removing a semicolon from every println call works. Is it because println is a macro?

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