Skip to content

Commit

Permalink
Minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmond Meinfelder committed Feb 2, 2014
1 parent be6fd3d commit 014e8d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -43,8 +43,7 @@ success and false on any failure.
}
assert.ok(obj.a === 111);

The above code would not throw because the values cannot be changed. Also,
assignments to constant properties does not cause errors.
The above code will throw because the values cannot be changed.

var makePropConst = require('const-obj').makePropConst;
var obj = { alpha: '0', beta: false };
Expand All @@ -60,7 +59,7 @@ assignments to constant properties does not cause errors.
obj.beta = true;
assert.ok(obj.beta === true);

The above code will not throw because the property is constant and cannot be
The above code will throw because the property is constant and cannot be
changed.

# License
Expand Down

0 comments on commit 014e8d3

Please sign in to comment.