Explorar o código

Typo in a method protocol. Fixes #940

Nicolas Petton %!s(int64=10) %!d(string=hai) anos
pai
achega
e9eddf7690
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  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