better parameter name

This commit is contained in:
Ben Fry
2014-11-24 15:38:21 -05:00
parent 4c20b094f0
commit ebc4162709

View File

@@ -258,12 +258,12 @@ public class StringDict {
* @webref stringdict:method
* @brief Create a new key/value pair or change the value of one
*/
public void set(String key, String amount) {
public void set(String key, String value) {
int index = index(key);
if (index == -1) {
create(key, amount);
create(key, value);
} else {
values[index] = amount;
values[index] = value;
}
}