Mercurial > js4py
diff core-javascript/simple-classes.rst @ 207:29c7fe19aeb5
Mark inline code using duble backticks
| author | Radomir Dopieralski <radomir.dopieralski@allegro.pl> |
|---|---|
| date | Thu, 17 May 2012 11:24:48 +0200 |
| parents | fef162a89a47 |
| children |
line wrap: on
line diff
--- a/core-javascript/simple-classes.rst Thu May 17 11:23:58 2012 +0200 +++ b/core-javascript/simple-classes.rst Thu May 17 11:24:48 2012 +0200 @@ -7,15 +7,15 @@ along with a discussion of the consequences. For now our focus is on getting going with object-oriented -programming. The easiest way to do this is via create. +programming. The easiest way to do this is via ``create``. Definition ---------- Here's a factory function that creates classes. It returns a function -called *cls*, which in turn when called returns instances. At it's -heart is *create*, and also *apply* and *arguments*, which we've not +called ``cls``, which in turn when called returns instances. At it's +heart is ``create``, and also ``apply`` and ``arguments``, which we've not seen before). .. literalinclude:: /core-javascript-work/library.js @@ -37,7 +37,7 @@ Fruit example ------------- -Here's an example of the use of *SimpleClass*. There's a bug in it, +Here's an example of the use of ``SimpleClass``. There's a bug in it, and I've changed the test so it passes. Can you find the bug and fix the example?
