summaryrefslogtreecommitdiff
path: root/test/disabled/script/fact.bat
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-20 14:07:01 -0700
committerPaul Phillips <paulp@improving.org>2012-09-20 14:07:01 -0700
commitcc6f5f97f8a4290391a69ac96f134cb3e8ed4381 (patch)
treef2aa4f428719b7a8c8afd9959161f43b26a2c06d /test/disabled/script/fact.bat
parentc8e6f8e64c4d9967cee41486cc2e324da0262976 (diff)
parent08de8afde6c99fb1739eb9730e6fce4eef54f296 (diff)
downloadscala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.tar.gz
scala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.tar.bz2
scala-cc6f5f97f8a4290391a69ac96f134cb3e8ed4381.zip
Merge remote-tracking branch 'paulp/topic/gitattributes' into 2.10.x
Diffstat (limited to 'test/disabled/script/fact.bat')
-rwxr-xr-xtest/disabled/script/fact.bat34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/disabled/script/fact.bat b/test/disabled/script/fact.bat
index bee0ba25c6..6f02b62a36 100755
--- a/test/disabled/script/fact.bat
+++ b/test/disabled/script/fact.bat
@@ -1,17 +1,17 @@
-::#!
-:: fact - A simple Scala batch file that prints out the factorial
-:: of the argument specified on the command line.
-
-@echo off
-call scala -nocompdaemon %0 %*
-goto :eof
-::!#
-
-
-val x = argv(0).toInt
-
-def fact(x: Int):Int =
- if(x==0) 1
- else x*fact(x-1)
-
-Console.println("fact(" + x + ") = " + fact(x))
+::#!
+:: fact - A simple Scala batch file that prints out the factorial
+:: of the argument specified on the command line.
+
+@echo off
+call scala -nocompdaemon %0 %*
+goto :eof
+::!#
+
+
+val x = argv(0).toInt
+
+def fact(x: Int):Int =
+ if(x==0) 1
+ else x*fact(x-1)
+
+Console.println("fact(" + x + ") = " + fact(x))