Skip to content

Commit ef5493d

Browse files
authored
Update unified-types.md
1 parent 049e094 commit ef5493d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/tour/unified-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ next-page: classes
1010
previous-page: tour-of-scala
1111
---
1212

13-
In Scala, all values are instance of a class, including numerical values and functions. The diagram below illustrates the class hierarchy.
13+
In Scala, all values are instances of a class, including numerical values and functions. The diagram below illustrates the class hierarchy.
1414

1515
![Scala Type Hierarchy]({{ site.baseurl }}/resources/images/classhierarchy.img_assist_custom.png)
1616

1717
## Scala Class Hierarchy ##
1818

1919
The superclass of all classes `scala.Any` has two direct subclasses: `scala.AnyVal` and `scala.AnyRef`.
2020

21-
`scala.AnyVal` represents value classes. All value classes are not nullable and predefined; they correspond to the primitive types of Java-like languages. Note that the diagram above also shows implicit conversions between the value classes.
21+
`scala.AnyVal` represents value classes. All value classes are non-nullable and predefined; they correspond to the primitive types of Java-like languages. Note that the diagram above also shows implicit conversions between the value classes.
2222

2323
`scala.AnyRef` represents reference classes. All non-value classes are defined as reference class. Every user-defined class in Scala implicitly extends `scala.AnyRef`. If Scala is used in the context of a Java runtime environment, `scala.AnyRef` corresponds to `java.lang.Object`.
2424

@@ -44,7 +44,7 @@ The application defines a variable `list` of type `List[Any]`. The list is initi
4444

4545
Here is the output of the program:
4646

47-
```tut
47+
```
4848
a string
4949
732
5050
c

0 commit comments

Comments
 (0)