Create from usage: Fixed typo.

This commit is contained in:
Jack Zhou
2013-04-11 18:42:10 -04:00
parent 4ee5d95dc9
commit 2284c7bd48
@@ -1106,7 +1106,7 @@ public class CreateMethodFromUsageFix extends CreateFromUsageFixBase {
returnJetType = new JetTypeImpl(returnJetType.getAnnotations(), returnJetType.getConstructor(), returnJetType.isNullable(),
returnJetTypeArguments, returnJetType.getMemberScope());
TypeOrExpressionThereof returnType = new TypeOrExpressionThereof(returnJetType);
return new CreateMethodFromUsageFix(forExpr, iterableType, "next", returnType, new ArrayList<Parameter>());
return new CreateMethodFromUsageFix(forExpr, iterableType, "iterator", returnType, new ArrayList<Parameter>());
}
};
}