#DOCUMENTATION
authorClaus Gittinger <cg@exept.de>
Fri, 15 Jan 2016 13:17:05 +0100
changeset 19030 688b462a4941
parent 19029 0b7682f30ead
child 19031 b8bbe1983d3a
#DOCUMENTATION class: SequenceableCollection comment/format in: #dot:
SequenceableCollection.st
--- a/SequenceableCollection.st	Fri Jan 15 13:02:36 2016 +0100
+++ b/SequenceableCollection.st	Fri Jan 15 13:17:05 2016 +0100
@@ -10048,12 +10048,14 @@
 
 dot:aFloatVector
     "Return the dot product of the receiver and the argument.
-     Fail if the argument is not of the same size as the receiver."
+     Raises an error, if the argument is not of the same size as the receiver."
 
     |mySize result|
 
     mySize := self size.
-    mySize = aFloatVector size ifFalse:[^self error:'Must be of equal size'].
+    mySize = aFloatVector size ifFalse:[
+        ^ self error:'Must be of equal size'
+    ].
     result := 0.0.
     1 to: mySize do:[:i|
         result := result + ((self at: i) * (aFloatVector at: i)).