Skip to content

Commit 8aace72

Browse files
authored
Update README.md - minor style fixes
1 parent 4194503 commit 8aace72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Step 2: Try running your sketch! In many cases, this will work right away, and n
3838
Step 3: If your 1.x sketch does not run with p5.js 2.0, you have two options:
3939

4040
* Update your code to match 2.0
41-
* or (2) Include a compatibility addon (after release, [this will also be possible in the p.js Editor](https://github.com/processing/p5.js-web-editor/pull/3334) once the new release is live.
41+
* or include a compatibility addon ([this will also be possible in the p.js Editor](https://github.com/processing/p5.js-web-editor/pull/3334) once the new release is live.
4242

4343
# Changes to make if your sketch includes…
4444

@@ -95,13 +95,13 @@ async function setup() {
9595

9696
## …using registerPreloadMethod in a addon or library
9797

98-
If your addon built with p5.js 1.x uses `registerPReloadMethod` such as in this example from [p5.sound.js](https://github.com/processing/p5.sound.js):
98+
If your addon built with p5.js 1.x uses `registerPreloadMethod` such as in this example from [p5.sound.js](https://github.com/processing/p5.sound.js):
9999

100100
```js
101101
p5.prototype.registerPreloadMethod('loadSound', p5.prototype);
102102
```
103103

104-
Then to make your addon compatible with **both p5.js 1.x and 2.0**, this this line can be removed (the method `loadSound`, in this example, does not need to be registered) and the method can be updated as follows:
104+
Then to make your addon compatible with **both p5.js 1.x *(preload)* and p5.js 2.0 *(promises)***, this this line can be removed (the method `loadSound`, in this example, does not need to be registered) and the method can be updated as follows:
105105

106106
```js
107107
function loadSound (path) {

0 commit comments

Comments
 (0)