Skip to content
Browse files

fix typos.

  • Loading branch information...
1 parent 5998e7c commit 3313ab72ddb5952f1af224f55fe1aab85937ff49 @Gozala committed Nov 11, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 packages/api-utils/lib/namespace.js
  2. +2 −2 packages/api-utils/tests/test-namespace.js
View
6 packages/api-utils/lib/namespace.js
@@ -38,12 +38,12 @@
/**
* Function creates a new namespace. Optionally `prototype` object may be
- * passed in which case namespace objects will inherit form it. Returned value
+ * passed, in which case namespace objects will inherit from it. Returned value
* is a function that can be used to get access to the namespaced properties
* for the passed object.
* @examples
- * const privates = Namespace();
- * privates(myObject).secret = secret;
+ * const ns = Namespace();
+ * ns(myObject).secret = secret;
*/
exports.Namespace = function Namespace(prototype) {
prototype = prototype || Object.prototype;
View
4 packages/api-utils/tests/test-namespace.js
@@ -29,7 +29,7 @@ exports["test namespace overlays"] = function(assert) {
object.foo = "baz";
assert.equal(_(object).foo, "bar",
- "property changes do not affect namsepaced properties");
+ "property changes do not affect namespaced properties");
object.bar = "foo";
assert.ok(!("bar" in _(object)),
@@ -64,7 +64,7 @@ exports["test multi namespace"] = function(assert) {
assert.notEqual(n1(object).foo, n2(object).foo,
"object can have multiple namespaces");
assert.equal(n1(object).bar, n2(object).bar,
- "object can have matiching props in diff namespaces");
+ "object can have matching props in diff namespaces");
};
require("test").run(exports);

0 comments on commit 3313ab7

Please sign in to comment.
Something went wrong with that request. Please try again.