Skip to content

Fix a word from 'variable' to 'value' #1270

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 2 commits into from
Jan 28, 2019
Merged

Conversation

hatemogi
Copy link
Contributor

At 6th paragraph in Tour of Scala - Unified Types, it seems that the wording 'variable' is actually meant to be 'value'.

@@ -40,7 +40,7 @@ val list: List[Any] = List(
list.foreach(element => println(element))
```

It defines a variable `list` of type `List[Any]`. The list is initialized with elements of various types, but they all are instance of `scala.Any`, so you can add them to the list.
It defines a value `list` of type `List[Any]`. The list is initialized with elements of various types, but they all are instance of `scala.Any`, so you can add them to the list.
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a grammatical mistake on this line. How about, s/they all are instance of/each is an instance of/, or similar?

@SethTisue
Copy link
Member

SethTisue commented Jan 28, 2019

"variable" is unfortunately ambiguous, but "value" is too; in e.g. val x = 3 I would tend to call x a "val" and the number 3 a "value"

regardless, this PR constitutes an improvement, so I'll merge it. but maybe we could do even better? not sure.

@SethTisue SethTisue merged commit 33b79f9 into scala:master Jan 28, 2019
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.

4 participants