From 524d1eb38fc9a106b56bb3c37082fe4fef7fa3b5 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Thu, 30 Oct 2014 09:28:03 -0700 Subject: [PATCH] Typos in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 357aa5f9..b8f6de21 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ css-layout This project implements a subset of CSS including flexbox and the box model using pure JavaScript, then transpiled to C and Java. The goal is to have a small standalone library to layout elements. It doesn't rely on the DOM at all. -In order to make sure that the code is correct, it is developped in JavaScript using TDD where each commit adds a unit test and the associated code to make it work. All the unit tests are tested against Chrome's implementation of CSS. +In order to make sure that the code is correct, it is developed in JavaScript using TDD where each commit adds a unit test and the associated code to make it work. All the unit tests are tested against Chrome's implementation of CSS. The JavaScript version has been implemented in a way that can be easily transpiled to C and Java via regexes. The layout function doesn't do any allocation nor uses any of the dynamic aspect of JavaScript. The tests are also transpiled to make sure that the implementations are correct everywhere. @@ -17,7 +17,7 @@ Usage A single function `computeLayout` is exposed and - takes a tree of nodes: `{ style: { ... }, children: [ nodes ] }` - - returns a tree of rectanges: `{ width: ..., height: ..., top: ..., left: ..., children: [ rects ] }` + - returns a tree of rectangles: `{ width: ..., height: ..., top: ..., left: ..., children: [ rects ] }` For example,