From d6f40f58a97ebebc689d3a59fdd8951d87a75dc5 Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Fri, 16 Jun 2006 11:02:55 +0000 Subject: changes to comments --- src/compiler/scala/tools/nsc/MainScript.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/compiler/scala/tools/nsc/MainScript.scala') diff --git a/src/compiler/scala/tools/nsc/MainScript.scala b/src/compiler/scala/tools/nsc/MainScript.scala index 308fa8509b..0bf3a0c815 100644 --- a/src/compiler/scala/tools/nsc/MainScript.scala +++ b/src/compiler/scala/tools/nsc/MainScript.scala @@ -10,21 +10,21 @@ import java.io.{BufferedReader, FileReader, File} import scala.tools.nsc.util._ import scala.tools.nsc.io._ -/** A main routine to support putting Scala code into scripts. +/** An object that runs Scala code in script files. * - * An shell script example on Unix would look like this: + * For example, here is a complete Scala script on Unix: * * #!/bin/sh - * exec scalascript "$0" "$@" + * exec scala "$0" "$@" * !# * Console.println("Hello, world!") * argv.toList foreach Console.println * - * A batch file example on Windows XP would look like this: + * And here is a batch file example on Windows XP: * * ::#! * @echo off - * call scalascript %0 %* + * call scala %0 %* * goto :eof * ::!# * Console.println("Hello, world!") -- cgit v1.2.3