Skip to content

Commit b191434

Browse files
committed
fixing createRadio example to clarify labels and values closes #4948
1 parent bddce17 commit b191434

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/dom/dom.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,9 +781,9 @@ p5.prototype.createSelect = function() {
781781
*
782782
* function setup() {
783783
* radio = createRadio();
784-
* radio.option('apple', 1);
785-
* radio.option('bread', 2);
786-
* radio.option('juice', 3);
784+
* radio.option(1, 'apple');
785+
* radio.option(2, 'bread');
786+
* radio.option(3, 'juice');
787787
* radio.style('width', '30px');
788788
* textAlign(CENTER);
789789
* }

0 commit comments

Comments
 (0)