Skip to content

Commit 9039796

Browse files
authored
fixing httpPost
1 parent e4acb5f commit 9039796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io/files.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ function files(p5, fn){
950950
* }
951951
*
952952
* function mousePressed() {
953-
* httpPost(url, 'json', postData, function(result) {
953+
* httpPost(url, postData, 'json', function(result) {
954954
* strokeWeight(2);
955955
* text(result.body, mouseX, mouseY);
956956
* });
@@ -970,8 +970,8 @@ function files(p5, fn){
970970
* function mousePressed() {
971971
* httpPost(
972972
* url,
973-
* 'json',
974973
* postData,
974+
* 'json',
975975
* function(result) {
976976
* // ... won't be called
977977
* },

0 commit comments

Comments
 (0)