Skip to content

Commit 3efe5cb

Browse files
author
Nitin2332
committed
rearrange
1 parent 49c3911 commit 3efe5cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/type/textCore.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,9 @@ function textCore(p5, fn) {
755755
*
756756
* For example, if the text contains multiple lines due to wrapping or explicit line breaks, textWidth()
757757
* will return the width of the longest line.
758+
*
759+
* **Note:** In p5.js 2.0+, leading and trailing spaces are ignored.
760+
* `textWidth(" Hello ")` returns the same width as `textWidth("Hello")`.
758761
*
759762
* @method textWidth
760763
* @for p5
@@ -817,9 +820,6 @@ function textCore(p5, fn) {
817820
* </code>
818821
* </div>
819822
*
820-
* **Note:** In p5.js 2.0+, leading and trailing spaces are ignored.
821-
* `textWidth(" Hello ")` returns the same width as `textWidth("Hello")`.
822-
*
823823
* @example
824824
* <div>
825825
* <code>

0 commit comments

Comments
 (0)