Skip to content

Commit ffa42d3

Browse files
Merge pull request #54 from ShaderFrog/typos
Typos in main readme
2 parents ac5e57d + e0ee6d1 commit ffa42d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ Error: Expected ",", ";", "=", or array specifier but "f" found.
227227
*/
228228
```
229229

230-
The error object includes the location of the error. It is not printed in the
231-
error message by default.
230+
The error object includes the location of the error.
231+
232232
```ts
233233
console.log(error.location)
234234
/*
@@ -245,7 +245,6 @@ a `grammarSource` to `parse()`, it shows up in the error object. This is
245245
meant to help you track which source file you're parsing, for example you could
246246
enter `"myfile.glsl"` as an argument to `parse()` so that the error
247247
includes that your source GLSL came from your application's `myfile.glsl` file.
248-
```
249248

250249
## Preprocessing
251250

@@ -313,6 +312,7 @@ const preprocessed = generate(ast);
313312
```
314313

315314
## Accessing the raw Peggy parser
315+
316316
If you need to access the Peggy compiled parser directly, import the `parser`.
317317
You can manually call `parser.parse()` if you prefer. Note if there are errors,
318318
rather than returning a `GlslSyntaxError`, it will return the underlying

0 commit comments

Comments
 (0)