diff --git a/core/variables.js b/core/variables.js index b1199fa4e..8af54d8ae 100644 --- a/core/variables.js +++ b/core/variables.js @@ -327,7 +327,9 @@ Blockly.Variables.createVariable = Blockly.Variables.createVariableButtonHandler; /** - * Rename a variable with the given workspace, variableType, and oldName. + * Opens a prompt that allows the user to enter a new name for a variable. + * Triggers a rename if the new name is valid. Or re-prompts if there is a + * collision. * @param {!Blockly.Workspace} workspace The workspace on which to rename the * variable. * @param {Blockly.VariableModel} variable Variable to rename.