From 4bab79034d0056fb9982cbf31491880f961f8b53 Mon Sep 17 00:00:00 2001
From: Martin Odersky <odersky@gmail.com>
Date: Fri, 7 Nov 2003 12:11:21 +0000
Subject: *** empty log message ***

---
 doc/reference/ScalaByExample.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'doc/reference/ScalaByExample.tex')

diff --git a/doc/reference/ScalaByExample.tex b/doc/reference/ScalaByExample.tex
index bea8c37665..7849be4882 100644
--- a/doc/reference/ScalaByExample.tex
+++ b/doc/reference/ScalaByExample.tex
@@ -1397,9 +1397,9 @@ As an example of how rational numbers can be used, here's a program
 that prints the sum of all numbers $1/i$ where $i$ ranges from 1 to 10.
 \begin{lstlisting}
 var i = 1;
-var x = Rational(0, 1);
+var x = new Rational(0, 1);
 while (i <= 10) {
-  x = x + Rational(1,i);
+  x = x + new Rational(1,i);
   i = i + 1;
 }
 System.out.println(x.numer + "/" + x.denom);
-- 
cgit v1.2.3

