From b191434378d4df530e039f2149acff6179ee452c Mon Sep 17 00:00:00 2001 From: Lauren McCarthy Date: Sat, 19 Dec 2020 23:15:47 -0800 Subject: [PATCH] fixing createRadio example to clarify labels and values closes #4948 --- src/dom/dom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index c8e73b6b3f..90a4a03720 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -781,9 +781,9 @@ p5.prototype.createSelect = function() { * * function setup() { * radio = createRadio(); - * radio.option('apple', 1); - * radio.option('bread', 2); - * radio.option('juice', 3); + * radio.option(1, 'apple'); + * radio.option(2, 'bread'); + * radio.option(3, 'juice'); * radio.style('width', '30px'); * textAlign(CENTER); * }