Skip to content

Commit

Permalink
chore: update comment message
Browse files Browse the repository at this point in the history
  • Loading branch information
翰文 committed Jul 12, 2016
1 parent 3d6411c commit cde8ad0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ var Compiler = Object.extend({
var name = node.value;
var v;

// if current scope has name in frame.store, than mean there is
// an formal parameter variable name as `node.value`, so if this
// parameter name can lookup from scope context, than parameter will
// replace by scope value.
// if current scope has `node.value` in frame.store, that mean there is
// an formal parameter variable name as `node.value`. if just lookup
// variable, when parameter name can lookup from scope context, the
// parameter may replace by scope value.
// see https://github.com/mozilla/nunjucks/issues/774
if(!frame.has(name) && (v = frame.lookup(name))) {
this.emit(v);
Expand Down

0 comments on commit cde8ad0

Please sign in to comment.