Skip to content

Commit c28a7ff

Browse files
committed
Fixed processing#398, as well as cleaning up some related bits in the IntDict examples
1 parent 2bbc523 commit c28a7ff

20 files changed

+64
-64
lines changed

content/api_en/IntDict.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
noLoop();
2525
fill(0);

content/api_en/IntDict_add.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory); // There are 84 cds
24-
inventory.add("cds", 20);
24+
inventory.add("cd", 20);
2525
println(inventory); // There are 104 cds
2626
}
2727

content/api_en/IntDict_clear.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
inventory.clear();
2525
println(inventory);

content/api_en/IntDict_div.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory); // There are 84 cds
24-
inventory.div("cds", 2);
24+
inventory.div("cd", 2);
2525
println(inventory); // There are 42 cds
2626
}
2727

content/api_en/IntDict_get.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
noLoop();
2525
fill(0);

content/api_en/IntDict_hasKey.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
if (inventory.hasKey("records") == true) {
2525
println("Yes, we have records.");

content/api_en/IntDict_increment.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory); // There are 15 tapes
2424
inventory.increment("tapes");
2525
println(inventory); // There are now 16 tapes

content/api_en/IntDict_keyArray.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
String[] theKeys = inventory.keyArray();
2525
println(theKeys);

content/api_en/IntDict_keys.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory);
2424
for (String k : inventory.keys()) {
2525
println(k);

content/api_en/IntDict_mult.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ IntDict inventory;
1717
void setup() {
1818
size(200, 200);
1919
inventory = new IntDict();
20-
inventory.set("cd",84);
21-
inventory.set("tapes",15);
22-
inventory.set("records",102);
20+
inventory.set("cd", 84);
21+
inventory.set("tapes", 15);
22+
inventory.set("records", 102);
2323
println(inventory); // There are 84 cds
24-
inventory.mult("cds", 2);
24+
inventory.mult("cd", 2);
2525
println(inventory); // There are 168 cds
2626
}
2727

0 commit comments

Comments
 (0)