Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 560566f

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 #11095
1 parent d8d30ce commit 560566f

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
@@ -1081,8 +1081,8 @@ function toJsonReplacer(key, value) {
10811081
* stripped since angular uses this notation internally.
10821082
*
10831083
* @param {Object|Array|Date|string|number} obj Input to be serialized into JSON.
1084-
* @param {boolean|number=} pretty If set to true, the JSON output will contain newlines and whitespace.
1085-
* If set to an integer, the JSON output will contain that many spaces per indentation (the default is 2).
1084+
* @param {boolean|number} [pretty=2] If set to true, the JSON output will contain newlines and whitespace.
1085+
* If set to an integer, the JSON output will contain that many spaces per indentation.
10861086
* @returns {string|undefined} JSON-ified string representing `obj`.
10871087
*/
10881088
function toJson(obj, pretty) {

0 commit comments

Comments
 (0)