Skip to content

Commit b979a44

Browse files
authored
Fixed backticks in inline code in Librairie tutorial
1 parent 49947c0 commit b979a44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contributor_docs/creating_libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Note two things from the code above:
212212
1. We call the `p5.prototype.registerPreloadMethod()` function passing in the name of the `loadCSV()` function as a string as the first parameter and `p5.prototype` as the second parameter.
213213
2. At the end of `fetch()`, after the CSV data has been parsed and pushed into the result array, `this._decrementPreload()` function is called.
214214
3) Now, if you test your sketch again, you should see that the “`myCSV`” variable is populated with the data from the CSV file!
215-
4. Note that due to inherent limitations of this technique, the returned “`result`” variable must be an object (array is also a type of object in Javascript) and must not be overwritten in the function body. You can set properties of the object (or push to the array), but you cannot reassign the variable (i.e., you cannot do “`result = data.split(‘\n’)`”).
215+
4. Note that due to inherent limitations of this technique, the returned “`result`” variable must be an object (array is also a type of object in Javascript) and must not be overwritten in the function body. You can set properties of the object (or push to the array), but you cannot reassign the variable (i.e., you cannot do “``result = data.split(`\n`)``”).
216216

217217
<details>
218218
<summary>Quite a bit of magic is happening here: firstly, why does “`result`” now contain the additional data when `fetch()` should still have been asynchronous and thus running after “`result`” has returned?</summary>

0 commit comments

Comments
 (0)