From 498ca3cba10c4594a1283c91949d26cf1d52ad0e Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Sun, 3 May 2020 11:15:51 -0700 Subject: [PATCH] Improve renameVariable jsdoc (#3879) --- core/variables.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.