Skip to content

Commit 482e854

Browse files
committed
clarify why partial examples are not encouraged
1 parent f303067 commit 482e854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contributor_docs/contributing_to_the_p5js_reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ We won’t go through the details about best practices and code style for the ex
747747

748748
### When examples omit setup()
749749

750-
If the `setup()` function is not included, such as in the example above, the code will be automatically wrapped in a `setup()` function with a default 100x100 pixels gray background canvas created. While you will see such examples included in this guide for brevity, it is generally preferred that your example be a complete sketch.
750+
If the `setup()` function is not included, such as in the example above, the code will be automatically wrapped in a `setup()` function with a default 100x100 pixels gray background canvas created. While you may see such examples included in this guide for brevity, it is generally preferred that your example be a complete sketch. This makes it easier for learners to see the intended usage in full context and copy-paste to get a complete runnable example in their own editor.
751751

752752
### <a id="norender"></a>Preventing execution of example code with `norender`
753753

0 commit comments

Comments
 (0)