doc: Fix comment for loopTypes (#6055)

This commit is contained in:
Christopher Allen
2022-03-31 19:17:57 +01:00
committed by GitHub
parent 31f5a73fca
commit c42aede94d

View File

@@ -293,8 +293,8 @@ Extensions.register(
* To add a new loop type add this to your code:
*
* // If using the Blockly npm package and es6 import syntax:
* import {loopTypes} from 'blockly/blocks';
* loopTypes.add('custom_loop');
* import {loops} from 'blockly/blocks';
* loops.loopTypes.add('custom_loop');
*
* // Else if using Closure Compiler and goog.modules:
* const {loopTypes} = goog.require('Blockly.libraryBlocks.loops');