mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
doc: Fix comment for loopTypes (#6055)
This commit is contained in:
committed by
GitHub
parent
31f5a73fca
commit
c42aede94d
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user