Skip to content

Commit 5837956

Browse files
authored
Structs: Clarify where to create a struct. (quii#849)
Clarify which file to create the struct in.
1 parent 23b2524 commit 5837956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

structs-methods-and-interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ We could just give the functions more specific names like `RectangleArea`. A nea
8989

9090
We can create a simple type using a **struct**. [A struct](https://golang.org/ref/spec#Struct_types) is just a named collection of fields where you can store data.
9191

92-
Declare a struct like this
92+
Declare a struct in your `shapes.go` file like this
9393

9494
```go
9595
type Rectangle struct {

0 commit comments

Comments
 (0)