Skip to content

Commit a3778bf

Browse files
authored
some minor fixes
1 parent 9cda2c4 commit a3778bf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/io/p5.Table.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class Table {
164164
* background(255); // Set background to white
165165
*
166166
* // Load the CSV file with a header row
167-
* table = await loadTable('mammals.csv', ',', 'header');
167+
* table = await loadTable('assets/mammals.csv', ',', 'header');
168168
*
169169
* // Get the row at index 1 (second row)
170170
* let row = table.getRow(1);
@@ -204,7 +204,7 @@ class Table {
204204
* background(255);
205205
*
206206
* // Load the CSV file with a header row
207-
* table = await loadTable('mammals.csv', ',', 'header');
207+
* table = await loadTable('assets/mammals.csv', ',', 'header');
208208
*
209209
* let rows = table.getRows();
210210
*
@@ -263,7 +263,7 @@ class Table {
263263
* background(255); // Set background to white
264264
*
265265
* // Load the CSV file with a header row
266-
* table = await loadTable('mammals.csv', ',', 'header');
266+
* table = await loadTable('assets/mammals.csv', ',', 'header');
267267
*
268268
* // Find the row with the animal named "Zebra"
269269
* let row = table.findRow('Zebra', 'name');
@@ -325,7 +325,7 @@ class Table {
325325
* background(255); // Set background to white
326326
*
327327
* // Load the CSV file with a header row
328-
* table = await loadTable('mammals.csv', ',', 'header');
328+
* table = await loadTable('assets/mammals.csv', ',', 'header');
329329
*
330330
* // Add another goat entry
331331
* let newRow = table.addRow();
@@ -944,7 +944,7 @@ class Table {
944944
* background(255);
945945
*
946946
* // Load the CSV file with a header row
947-
* table = await loadTable('mammals.csv', ',', 'header');
947+
* table = await loadTable('assets/mammals.csv', ',', 'header');
948948
*
949949
* // Update the first row: change species to "Canis Lupus" and name to "Wolf"
950950
* table.set(0, 'species', 'Canis Lupus');
@@ -997,7 +997,7 @@ class Table {
997997
* background(255);
998998
*
999999
* // Load the CSV file with a header row
1000-
* table = await loadTable('mammals.csv', ',', 'header');
1000+
* table = await loadTable('assets/mammals.csv', ',', 'header');
10011001
*
10021002
* // Set the value in row 1, column "id" to the number 1
10031003
* table.setNum(1, 'id', 1);
@@ -1041,7 +1041,7 @@ class Table {
10411041
* background(255);
10421042
*
10431043
* // Load the CSV file from the assets folder with a header row
1044-
* table = await loadTable('mammals.csv', ',', 'header');
1044+
* table = await loadTable('assets/mammals.csv', ',', 'header');
10451045
*
10461046
* // Add a new row with the new animal data
10471047
* let newRow = table.addRow();
@@ -1141,7 +1141,7 @@ class Table {
11411141
* background(255); // Set background to white
11421142
*
11431143
* // Load the CSV file with a header row
1144-
* table = await loadTable('mammals.csv', ',', 'header');
1144+
* table = await loadTable('assets/mammals.csv', ',', 'header');
11451145
*
11461146
* // Compute the result: id at row 1, column 0 plus 100 (i.e. 1 + 100 = 101)
11471147
* let result = table.getNum(1, 0) + 100;
@@ -1182,7 +1182,7 @@ class Table {
11821182
* background(255); // Set background to white
11831183
*
11841184
* // Load the CSV file with a header row
1185-
* table = await loadTable('mammals.csv', ',', 'header');
1185+
* table = await loadTable('assets/mammals.csv', ',', 'header');
11861186
*
11871187
* // Set text properties
11881188
* fill(0); // Text color: black

0 commit comments

Comments
 (0)