Skip to content

Commit d71eb33

Browse files
authoredApr 16, 2021
doc improvement (#1349)
* added an example to the parse object docs * Changed the wording to match the other example * removed the trailing whitespace for lint
1 parent 16b45fd commit d71eb33

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎src/ParseObject.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1246,9 +1246,11 @@ class ParseObject {
12461246
* or<pre>
12471247
* object.save(attrs, options);</pre>
12481248
* or<pre>
1249+
* object.save(key, value);</pre>
1250+
* or<pre>
12491251
* object.save(key, value, options);</pre>
12501252
*
1251-
* For example, <pre>
1253+
* Example 1: <pre>
12521254
* gameTurn.save({
12531255
* player: "Jake Cutter",
12541256
* diceRoll: 2
@@ -1258,6 +1260,9 @@ class ParseObject {
12581260
* // The save failed. Error is an instance of Parse.Error.
12591261
* });</pre>
12601262
*
1263+
* Example 2: <pre>
1264+
* gameTurn.save("player", "Jake Cutter");</pre>
1265+
*
12611266
* @param {string | object | null} [arg1]
12621267
* Valid options are:<ul>
12631268
* <li>`Object` - Key/value pairs to update on the object.</li>

0 commit comments

Comments
 (0)
Please sign in to comment.