Skip to content

Commit

Permalink
Fix a minor typo (quii#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
ʇɹǝqƃǝᴉs puɐloɹ authored and quii committed Jul 12, 2019
1 parent c359217 commit a6be481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrays-and-slices.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ using `_` [blank identifier](https://golang.org/doc/effective_go.html#blank).

### Arrays and their type

An interesting property of arrays is the size is encoded in its type. If you try
An interesting property of arrays is that the size is encoded in its type. If you try
to pass an `[4]int` into a function that expects `[5]int`, it won't compile.
They are different types so it's just the same as trying to pass a `string` into
a function that wants an `int`.
Expand Down

0 comments on commit a6be481

Please sign in to comment.