Skip to content

Commit 49947c0

Browse files
authored
fix typo in code examples in Creating Libraries tutorial
`this.minute}` > `this.minute()}`
1 parent 7d39cb7 commit 49947c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contributor_docs/creating_libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ First make the following changes to your `loadCSV()` method:
138138

139139
```js
140140
p5.prototype.loadCSV = function(filename){
141-
console.log(`I will load the CSV file ${filename} at ${this.hour()}:${this.minute}!`);
141+
console.log(`I will load the CSV file ${filename} at ${this.hour()}:${this.minute()}!`);
142142

143143
let result = [];
144144

@@ -187,7 +187,7 @@ p5 will need to be told that the addon’s `loadCSV()` function is something it
187187

188188
```js
189189
p5.prototype.loadCSV = function (filename){
190-
console.log(`I will load the CSV file ${filename} at ${this.hour()}:${this.minute}!`);
190+
console.log(`I will load the CSV file ${filename} at ${this.hour()}:${this.minute()}!`);
191191

192192
let result = [];
193193

0 commit comments

Comments
 (0)