From e58392742ef1e53d7c8d41dc5802d8952888758c Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Tue, 15 Aug 2017 10:36:54 +0300 Subject: [PATCH] Update unified-types.md Removed a part which probably was left hanging there after an earlier edit --- _tour/unified-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_tour/unified-types.md b/_tour/unified-types.md index 5379a4852b..2c4d5bb239 100644 --- a/_tour/unified-types.md +++ b/_tour/unified-types.md @@ -24,7 +24,7 @@ In Scala, all values have a type, including numerical values and functions. The `AnyVal` represents value types. There are nine predefined value types and they are non-nullable: `Double`, `Float`, `Long`, `Int`, `Short`, `Byte`, `Char`, `Unit`, and `Boolean`. `Unit` is a value type which carries no meaningful information. There is exactly one instance of `Unit` which can be declared literally like so: `()`. All functions must return something so sometimes `Unit` is a useful return type. -`AnyRef` represents reference types. All non-value types are defined as reference types. Anywhere an `AnyRef` Every user-defined type in Scala is a subtype of `AnyRef`. If Scala is used in the context of a Java runtime environment, `AnyRef` corresponds to `java.lang.Object`. +`AnyRef` represents reference types. All non-value types are defined as reference types. Every user-defined type in Scala is a subtype of `AnyRef`. If Scala is used in the context of a Java runtime environment, `AnyRef` corresponds to `java.lang.Object`. Here is an example that demonstrates that strings, integers, characters, boolean values, and functions are all objects just like every other object: