Skip to content
Merged
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
2 changes: 1 addition & 1 deletion book/move-basics/generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cases the Move compiler can infer the correct type.

```

In the test function `test_generic`, we demonstrate three equivalent ways to create a new
In the test function `test_container`, we demonstrate three equivalent ways to create a new
`Container` with a `u8` value. Because numeric constants have ambiguous types, we must specify the
type of the number literal somewhere (in the type of the container, the parameter to `new`, or the
number literal itself); once we specify one of these the compiler can infer the others.
Expand Down