Skip to content
This repository has been archived by the owner on Nov 23, 2020. It is now read-only.

Commit

Permalink
documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
H2CO3 committed Nov 6, 2016
1 parent e3ff588 commit 113ab1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions doc/grammar.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ Grammar notations:

The language ignores whitespace between tokens (terminals). Comments are treated
as whitespace (they're ignored). One-line comments begin with '//' or '#',
whereas block comments are enclosed between '/*' and '*/'.

and they don't nest.
whereas block comments are enclosed between '/*' and '*/' and they don't nest.

T h e g r a m m a r
~~~~~~~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ This is a short list of the most important operators:
assignments
* `?:` - conditional operator
* `.`: property access (calls getter or setter if exists)
* `::`: raw member access by name: `foo::bar` desugars to `foo["bar"]` and it doesn't call getters or setters.
* `&&`, `||`: logical AND and OR
* `==`, `!=`, `<=`, `>=`, `<`, `>`: comparison operators
* `&`, `|`, `^`: bitwise AND, OR and XOR
Expand Down Expand Up @@ -552,7 +553,7 @@ on error.

If a program has run successfully, then its return value will be in
`retVal`. You must relinquish ownership of this value if you no longer need it
by calling `spn_value_release()` on it (since SpnValue are reference counted).
by calling `spn_value_release()` on it (since `SpnValue`s are reference counted).

SpnValue retval;
if (spn_ctx_execstring(&ctx, "return \"Hello world!\";", &retval) == 0) {
Expand Down

0 comments on commit 113ab1f

Please sign in to comment.