Skip to content

Commit

Permalink
fixing createRadio example to clarify labels and values closes #4948
Browse files Browse the repository at this point in the history
  • Loading branch information
lmccart committed Dec 20, 2020
1 parent bddce17 commit b191434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
* }
Expand Down

0 comments on commit b191434

Please sign in to comment.