Skip to content

Commit

Permalink
Merge pull request #1 from djtanner/struct-description
Browse files Browse the repository at this point in the history
Update structs-methods-and-interfaces.md
  • Loading branch information
djtanner committed Jan 29, 2024
2 parents 178c1cf + 961304a commit d4dd99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs-methods-and-interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ We could just give the functions more specific names like `RectangleArea`. A nea

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.

Declare a struct like this
Declare a struct like this above your Perimeter and Area functions

```go
type Rectangle struct {
Expand Down

0 comments on commit d4dd99a

Please sign in to comment.