Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo fix, first example struct #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
typo fix, first example struct
  • Loading branch information
KnBrBz authored May 24, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 35a41edac7ace4bbd92afc3d154ac6154beaa153
8 changes: 7 additions & 1 deletion content/docs/language/struct_types/_index.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,12 @@ weight: 2

Declare a variable of type `example` set to its zero value.
```go
type example struct {
flag bool
pi float32
counter int64
}

var e1 example
```

@@ -47,7 +53,7 @@ Example:
type example struct {
counter int64
pi float32
float bool
flag bool
}
```