From 45ff3782cc197dd9e2814eaabbfa70d0662b7033 Mon Sep 17 00:00:00 2001 From: Andy Maleh Date: Sun, 1 Mar 2015 15:24:34 -0500 Subject: [PATCH] Corrected spelling/grammar/missing words. --- Readme.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Readme.md b/Readme.md index fe9f4d5..552a174 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,7 @@ [![Build Status](https://secure.travis-ci.org/Gozala/selfish.png)](http://travis-ci.org/Gozala/selfish) -Class-free, pure prototypal inheritance that lets write expressive, +Class-free, pure prototypal inheritance that lets you write expressive, well-structured code, without ever touching special `prototype` properties or `new`, `instanceof` operators. @@ -20,14 +20,14 @@ or `new`, `instanceof` operators. ```js // Instead of creating classes, you create prototype objects. Let's look -// at the simle example first: +// at this simple example first: var Dog = Base.extend({ bark: function() { return 'Ruff! Ruff!' } }) -// Forget about classes, javascript is prototypal language: +// Forget about classes, javascript is a prototypal language: typeof Dog // object // Forget about special `new` operator, just use a maker function: @@ -139,12 +139,12 @@ var Pixel = Color.extend({ var pixel = Pixel.new(11, 23, 'CC3399') pixel.toString() // 11:23@#CC3399 -Pixel.isPrototypeOf(pixel) +Pixel.isPrototypeOf(pixel) // true // Pixel instances inhertis from `Color` Color.isPrototypeOf(pixel) // true // In fact `Pixel` itself inherits from `Color`, remember just simple and -// pure prototypal inheritance where object inherit from objects. -Color.isPrototypeOf(Pixel) +// pure prototypal inheritance where objects inherit from objects. +Color.isPrototypeOf(Pixel) // true ```