Skip to content

Commit

Permalink
doc improvement (#1349)
Browse files Browse the repository at this point in the history
* added an example to the parse object docs

* Changed the wording to match the other example

* removed the trailing whitespace for lint
  • Loading branch information
TravisDev committed Apr 16, 2021
1 parent 16b45fd commit d71eb33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ParseObject.js
Expand Up @@ -1246,9 +1246,11 @@ class ParseObject {
* or<pre>
* object.save(attrs, options);</pre>
* or<pre>
* object.save(key, value);</pre>
* or<pre>
* object.save(key, value, options);</pre>
*
* For example, <pre>
* Example 1: <pre>
* gameTurn.save({
* player: "Jake Cutter",
* diceRoll: 2
Expand All @@ -1258,6 +1260,9 @@ class ParseObject {
* // The save failed. Error is an instance of Parse.Error.
* });</pre>
*
* Example 2: <pre>
* gameTurn.save("player", "Jake Cutter");</pre>
*
* @param {string | object | null} [arg1]
* Valid options are:<ul>
* <li>`Object` - Key/value pairs to update on the object.</li>
Expand Down

0 comments on commit d71eb33

Please sign in to comment.