Skip to content

tour: good place to mention that "} else {" must occur on one line #1481

Open
golang/website
#225
@JohnL4

Description

@JohnL4

Context: https://go.dev/tour/flowcontrol/7

This caused some confusion for me, an experienced programmer learning Go by the tutorial. Seems like hereabouts is a spectacular place to remind the reader that the Go compiler appends semicolons to lines ending in "}" or ")".

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