Skip to content

Teensy weensy typo? #1680

@ohgrumble

Description

@ohgrumble

Hey ya'll. I'm currently using the Scala Book to try to learn Scala for my new job.

I noticed a small typo on this page: https://docs.scala-lang.org/overviews/scala-book/classes.html#basic-class-constructor

In the tip right before the header "Class constructors":

Tip: If you use Scala to write OOP code, create your fields as var fields so you can mutate them. When you write FP code with Scala, you’ll general use case classes instead of classes like this. (More on this later.)

I believe "general" in this context was meant to be "generally."

That's all. Thank you for maintaining this resource. I'm finding it incredibly helpful!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions