From 5e120c7d86038700d43ed1ea5e2c7ce0f9171af1 Mon Sep 17 00:00:00 2001 From: Vsevolod Pakhomov Date: Sun, 30 Oct 2016 20:08:39 +0300 Subject: [PATCH 1/2] Link to an associated tutorial entry on singletons --- tutorials/tour/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/tour/classes.md b/tutorials/tour/classes.md index 9bc0a32f3b..ce3740d277 100644 --- a/tutorials/tour/classes.md +++ b/tutorials/tour/classes.md @@ -43,7 +43,7 @@ object Classes { } ``` -The program defines an executable application Classes in form of a top-level singleton object with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant. +The program defines an executable application Classes in form of a top-level [singleton object](singleton-objects.html) with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant. Here is the output of the program: From 0129d493dbd142a12fd94f3c2cf688215b363f81 Mon Sep 17 00:00:00 2001 From: Vsevolod Pakhomov Date: Sun, 30 Oct 2016 20:58:34 +0300 Subject: [PATCH 2/2] dropped linked url's extension just to make it cleaner --- tutorials/tour/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/tour/classes.md b/tutorials/tour/classes.md index ce3740d277..dadaffead7 100644 --- a/tutorials/tour/classes.md +++ b/tutorials/tour/classes.md @@ -43,7 +43,7 @@ object Classes { } ``` -The program defines an executable application Classes in form of a top-level [singleton object](singleton-objects.html) with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant. +The program defines an executable application Classes in form of a top-level [singleton object](singleton-objects) with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`. Note that values defined with the `val` construct are different from variables defined with the `var` construct (see class `Point` above) in that they do not allow updates; i.e. the value is constant. Here is the output of the program: