Skip to content
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

Confusing example of substitution in methods #27

Open
mattkohl opened this issue Apr 28, 2017 · 1 comment
Open

Confusing example of substitution in methods #27

mattkohl opened this issue Apr 28, 2017 · 1 comment

Comments

@mattkohl
Copy link
Contributor

Should this example (from creative-scala/src/pages/methods/semantics.md):

{
 val x = 2
 square(2)
}

have x as an argument to the square method:

{
  val x = 2
  square(x)
}

?

@noelwelsh
Copy link
Contributor

Yes, that looks like an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants