Skip to content

Commit 12fb773

Browse files
authored
Merge pull request #7182 from orrkislev/main
fix for #7181
2 parents bd8827b + 9597e08 commit 12fb773

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/core/environment.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ let windowPrintDisabled = false;
3030
* @method print
3131
* @param {Any} contents content to print to the console.
3232
* @example
33-
* <div>
34-
* <code class="norender">
33+
* <div class="norender">
34+
* <code>
3535
* function setup() {
3636
* // Prints "hello, world" to the console.
3737
* print('hello, world');
3838
* }
3939
* </code>
4040
* </div>
4141
*
42-
* <div>
43-
* <code class="norender">
42+
* <div class="norender">
43+
* <code>
4444
* function setup() {
4545
* let name = 'ada';
4646
* // Prints "hello, ada" to the console.

src/dom/dom.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,8 +2978,8 @@ p5.Element.prototype.html = function(...args) {
29782978
* @returns {Object} object of form `{ x: 0, y: 0 }` containing the element's position.
29792979
*
29802980
* @example
2981-
* <div>
2982-
* <code class='norender'>
2981+
* <div class='norender'>
2982+
* <code>
29832983
* function setup() {
29842984
* let cnv = createCanvas(100, 100);
29852985
*
@@ -2994,8 +2994,8 @@ p5.Element.prototype.html = function(...args) {
29942994
* </code>
29952995
* </div>
29962996
*
2997-
* <div>
2998-
* <code class='norender'>
2997+
* <div class='norender'>
2998+
* <code>
29992999
* function setup() {
30003000
* let cnv = createCanvas(100, 100);
30013001
*

0 commit comments

Comments
 (0)