#DOCUMENTATION
authorClaus Gittinger <cg@exept.de>
Fri, 26 Feb 2016 11:45:37 +0100
changeset 19253 45c2b67527f1
parent 19252 7e0b6ccb0d81
child 19254 3ae994a58578
#DOCUMENTATION class: Interval comment/format in: #sum
Interval.st
--- a/Interval.st	Fri Feb 26 11:11:38 2016 +0100
+++ b/Interval.st	Fri Feb 26 11:45:37 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
               All Rights Reserved
@@ -177,9 +175,10 @@
 sum
     "sum up all elements."
 
-    "/ sum(1..n) is n*(n+1)
-    "/              -------
+    "/              n*(n+1)
+    "/ sum(1..n) is -------
     "/                 2
+    
     start < stop ifTrue:[
         step == 1 ifTrue:[
             start == 1 ifTrue:[