Skip to content

Commit 66650bf

Browse files
docs(toJson): improve option param documentation
With an upgrade to dgeni-packages 0.10.13, this style of optional param is rendered more correctly. See angular#11095
1 parent 900b3a4 commit 66650bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Angular.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -979,8 +979,8 @@ function toJsonReplacer(key, value) {
979979
* stripped since angular uses this notation internally.
980980
*
981981
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
982-
* @param {boolean|number=} pretty If set to true, the JSON output will contain newlines and whitespace.
983-
* If set to an integer, the JSON output will contain that many spaces per indentation (the default is 2).
982+
* @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
983+
* If set to an integer, the JSON output will contain that many spaces per indentation.
984984
* @returns {string|undefined} JSON-ified string representing `obj`.
985985
*/
986986
function toJson(obj, pretty) {

0 commit comments

Comments
 (0)