]> source.dussan.org Git - svg.js.git/commitdiff
Fix in README
authorwout <wout@impinc.co.uk>
Sat, 25 Jan 2014 14:29:16 +0000 (15:29 +0100)
committerwout <wout@impinc.co.uk>
Sat, 25 Jan 2014 14:29:16 +0000 (15:29 +0100)
README.md

index 2c1507a16d5347e34c770e95415a0493e965aedd..c9cbb6e8e97a70ffe7c1453e4288fb300558b4b6 100644 (file)
--- a/README.md
+++ b/README.md
@@ -789,7 +789,7 @@ draw.each(function(i, children) {
 Elements can be moved between parents via the `add()` method on any parent:
 
 ```javascript
-var rect = draw.rect()
+var rect = draw.rect(100, 100)
 var group = draw.group()
 
 group.add(rect) //-> returns group
@@ -809,7 +809,7 @@ Similarly to the `add()` method on a parent element, elements have the `addTo()`
 rect.addTo(group) //-> returns rect
 ```
 
-### AddTo
+### PutIn
 Similarly to the `put()` method on a parent element, elements have the `putIn()` method:
 
 ```javascript