Commit fe9d311e authored by Stefan Cameron's avatar Stefan Cameron

README formatting

parent dc01ff2c
Pipeline #32246548 passed with stages
in 6 minutes and 18 seconds
......@@ -643,6 +643,7 @@ Now we can generate a Note class and create an instance:
const Note = classGenerator(noteShape);
const note = new Note({text: 'Hello world!');
note.text; // "Hello world!", since it was initialized
note.created; // null, since it wasn't initialized
note.text = ''; // ERROR: "text" must be a non-empty string
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment