Browse Source

Typo in a method protocol. Fixes #940

Nicolas Petton 10 years ago
parent
commit
e9eddf7690
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/Kernel-Collections.js
  2. 1 1
      src/Kernel-Collections.st

+ 2 - 2
src/Kernel-Collections.js

@@ -1412,7 +1412,7 @@ globals.IndexableCollection);
 smalltalk.addMethod(
 smalltalk.method({
 selector: "with:do:",
-protocol: 'enumarating',
+protocol: 'enumerating',
 fn: function (anotherCollection,aBlock){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
@@ -1431,7 +1431,7 @@ globals.IndexableCollection);
 smalltalk.addMethod(
 smalltalk.method({
 selector: "withIndexDo:",
-protocol: 'enumarating',
+protocol: 'enumerating',
 fn: function (aBlock){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 

+ 1 - 1
src/Kernel-Collections.st

@@ -506,7 +506,7 @@ indexOf: anObject ifAbsent: aBlock
 	self subclassResponsibility
 ! !
 
-!IndexableCollection methodsFor: 'enumarating'!
+!IndexableCollection methodsFor: 'enumerating'!
 
 with: anotherCollection do: aBlock
 	"Calls aBlock with every value from self