Skip to content

Commit

Permalink
Fix example code in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Tyler committed May 6, 2017
1 parent 9af179c commit d043792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Written in the latest ECMAScript for maximum readability and simplicity of use.
```javascript
const Girders = require('girders');

class Car extends Girders {
class Car extends Girders.Model {
getSchema() {
return {
id: Integer,
id: Number,
name: {type: String, isRequired: true},
doors: Integer
doors: Number
};
}

Expand All @@ -26,5 +26,5 @@ class Car extends Girders {

const peugeot309 = new Car({name: 'Peugeot 309', doors: 5});

console.log(`<a href="${peugeot309.url}">${peugeot309.name}</a> has ${peugeot309.doors}`);
console.log(`<a href="${peugeot309.url}">${peugeot309.name}</a> has ${peugeot309.doors} doors`);
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "girders",
"version": "0.1.1",
"version": "0.1.2",
"description": "Generic, simple and sensible data management for JavaScript",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d043792

Please sign in to comment.