Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=142052361
  • Loading branch information
tbreisacher authored and blickly committed Dec 15, 2016
1 parent e3102c5 commit 911fdc8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/com/google/javascript/jscomp/OptimizeArgumentsArray.java
Expand Up @@ -55,7 +55,7 @@ class OptimizeArgumentsArray implements CompilerPass, ScopedCallback {
"JSCompiler_OptimizeArgumentsArray_p";

// The prefix for the newly introduced parameter name.
private final String paramPredix;
private final String paramPrefix;

// To make each parameter name unique in the function. We append an
// unique integer at the end.
Expand Down Expand Up @@ -84,7 +84,7 @@ class OptimizeArgumentsArray implements CompilerPass, ScopedCallback {
*/
OptimizeArgumentsArray(AbstractCompiler compiler, String paramPrefix) {
this.compiler = Preconditions.checkNotNull(compiler);
this.paramPredix = Preconditions.checkNotNull(paramPrefix);
this.paramPrefix = Preconditions.checkNotNull(paramPrefix);
}

@Override
Expand Down Expand Up @@ -300,6 +300,6 @@ private boolean tryReplaceArguments(Scope scope) {
* Generate a unique name for the next parameter.
*/
private String getNewName() {
return paramPredix + uniqueId++;
return paramPrefix + uniqueId++;
}
}

0 comments on commit 911fdc8

Please sign in to comment.