File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments