8000 Update 2012-11-03-value-classes.md by briangordon · Pull Request #423 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

Update 2012-11-03-value-classes.md #423

New issue 8000

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
May 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion overviews/core/_posts/2012-11-03-value-classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ One use case for value classes is to combine them with implicit classes ([SIP-13

The following fragment of `RichInt` shows how it extends `Int` to allow the expression `3.toHexString`:

class RichInt(val self: Int) extends AnyVal {
implicit class RichInt(val self: Int) extends AnyVal {
def toHexString: String = java.lang.Integer.toHexString(self)
}

Expand Down
0