From 2f9d4808da9aa0db2de786f6b0755f70efb0c749 Mon Sep 17 00:00:00 2001 From: Dongxu Wang Date: Fri, 16 Aug 2019 22:16:41 +0800 Subject: [PATCH] Fix the sentence which might mislead readers. --- _overviews/tutorials/scala-for-java-programmers.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_overviews/tutorials/scala-for-java-programmers.md b/_overviews/tutorials/scala-for-java-programmers.md index 35ff634a56..23dd752633 100644 --- a/_overviews/tutorials/scala-for-java-programmers.md +++ b/_overviews/tutorials/scala-for-java-programmers.md @@ -38,8 +38,7 @@ it consists of one method called `main` which takes the command line arguments, an array of strings, as parameter; the body of this method consists of a single call to the predefined method `println` with the friendly greeting as argument. The `main` method does not -return a value (it is a procedure method). Therefore, it is not necessary -to declare a return type. +return a value. Therefore, its return type is declared as `Unit`. What is less familiar to Java programmers is the `object` declaration containing the `main` method. Such a declaration