--- 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)).