Skip to content

x/website: Found an important typo in the text on first tutorial page. #51511

@differentstuff

Description

@differentstuff

What is the URL of the page with the issue?

https://go.dev/doc/tutorial/create-module

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0

Screenshot

not needed

What did you do?

I tried to learn about golang, and read the first Tutorial page "Tutorial: Create a Go module".
At the end of the page it is explained with the sentence "In Go, the := operator is a shortcut for declaring..."
I found it very confusing that the following example does not contain a colon at all.
"message = fmt.Sprintf("Hi, %v. Welcome!", name)"
But, in the example above there is a colon.
"message := fmt.Sprintf("Hi, %v. Welcome!", name)"
That's how I finally understood that part.

That's just a small typo I think, but as a programming starter (as me) it can be very difficult to understand.
If ever this is NOT a typo, I hope someone could explain me the meaning of this part.

What did you expect to see?

A colon

What did you see instead?

nothing

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions