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 _tour/type-inference.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The parameter for map is `f: A => B`. Because we put integers in the `Seq`, the

## When _not_ to rely on type inference

It is generally considered more readable to declare the type of members exposed in a public API. Therefore, we recommended that you make the type explicit for any APIs that will be exposed to users of your code.
It is generally considered more readable to declare the type of members exposed in a public API. Therefore, we recommend that you make the type explicit for any APIs that will be exposed to users of your code.

Also, type inference can sometimes infer a too-specific type. Suppose we write:

Expand Down