Skip to content

Commit e181918

Browse files
authored
Merge pull request #2489 from mmvarma-pro/master
fix(codelabs): Update custom generator codelab to use CodeGenerator
2 parents e3057fc + 8f49844 commit e181918

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codelabs/custom_generator/custom_generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ A custom language generator is simply an instance of `Blockly.Generator`. Create
203203
```js
204204
import * as Blockly from 'blockly';
205205

206-
export const jsonGenerator = new Blockly.Generator('JSON');
206+
export const jsonGenerator = new Blockly.CodeGenerator('JSON');
207207
```
208208

209209
### Generate code

0 commit comments

Comments
 (0)