Skip to content

Commit 07cb307

Browse files
fix: Add js highlighting
1 parent 90292bb commit 07cb307

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ NOTE: When exporting a kernel and using `constants` the following constants are
834834
* `Boolean`
835835

836836
Here is an example used to/from file:
837-
```
837+
```js
838838
import { GPU } from 'gpu.js';
839839
import * as fs from 'fs';
840840
const gpu = new GPU();
@@ -847,7 +847,6 @@ fs.writeFileSync('./my-exported-kernel.js', 'module.exports = ' + kernelString);
847847
import * as MyExportedKernel from './my-exported-kernel';
848848
import gl from 'gl';
849849
const myExportedKernel = MyExportedKernel({ context: gl(1,1), constants: { v1: 100 } });
850-
851850
```
852851

853852

0 commit comments

Comments
 (0)