Skip to content

Fix a typo, add missing space in code snippet #804

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
Jul 12, 2017

Conversation

aaabramov
Copy link
Contributor

@@ -60,7 +60,7 @@ iterator.next() // prints 1
This `IntIterator` class takes a parameter `to` as an upper bound. It `extends Iterator[Int]` which means that the `next` method must return an Int.

## Subtyping
Subtypes of traits can be used where a the trait is required.
Subtypes of traits can be used where a trait is required.
Copy link
Contributor

Choose a reason for hiding this comment

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

How about:

Where a given trait is required, a subtype of the trait can be used instead.

Avoids the forward reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool! Will update PL this evening (in 10 hours)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@som-snytt done. Please review.

@som-snytt
Copy link
Contributor

LGTM thx.

@heathermiller
Copy link
Member

Thanks @Abrasha and @som-snytt!

@heathermiller heathermiller merged commit 9b19045 into scala:master Jul 12, 2017
@aaabramov aaabramov deleted the fix/typo-in-tutorial branch July 12, 2017 17:43
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