Skip to content

fix errors of code in "Explicit term inference" article #1178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

vitojeng
Copy link

No description provided.

@@ -399,7 +399,7 @@ case class Mountain(name: String, height: Int)

object Main extends App {
implicit val mountainShow: Show[Mountain] =
Show.fromFunction((m: Mountain) => s"The ${m.name} is ${m.height} meters high")
Show.from((m: Mountain) => s"The ${m.name} is ${m.height} meters high")
Copy link
Author

@vitojeng vitojeng Nov 17, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compare with the line 383, the method name should be from

@vitojeng vitojeng changed the title fix typo in "Explicit term inference" article fix errors of code in "Explicit term inference" article Nov 17, 2020
@vitojeng vitojeng closed this Nov 17, 2020
@vitojeng vitojeng deleted the fix-article-typo branch November 17, 2020 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant