Skip to content

fix imperative code snippet in scala-features.md #2322

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

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Conversation

mirca
Copy link
Contributor

@mirca mirca commented Feb 8, 2022

This minor PR slightly modifies the imperative code snippet such that it is executable. More precisely, its previous version was returning the error Not found: type ListBuffer. While I see that this is just a toy example to show beginners what not to do in Scala, I'd think it would be helpful if the code snippet was executable nonetheless.

This patch also makes the next line of code, i.e., val newNumbers = oldNumbers.map(_ * 2), executable.

@SethTisue SethTisue merged commit c2aa33d into scala:main Feb 10, 2022
@SethTisue
Copy link
Member

Thank you!

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.

3 participants