summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2014-04-01 12:17:15 +0200
committerFlorian Frank <flori@ping.de>2014-04-01 12:17:15 +0200
commit22e724c4a2fbeb47009320c90f58f4532045f60c (patch)
treee0c340c0d3c79f1456e2f935c12500a10c3a3044
parentbc46b177d520c2893b52ee13fd5ceb0b65f06a79 (diff)
downloadjson-22e724c4a2fbeb47009320c90f58f4532045f60c.tar.gz
Change documentation to reflect new default value
-rw-r--r--ext/json/ext/parser/parser.c2
-rw-r--r--lib/json/common.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/json/ext/parser/parser.c b/ext/json/ext/parser/parser.c
index df89f2c..9070920 100644
--- a/ext/json/ext/parser/parser.c
+++ b/ext/json/ext/parser/parser.c
@@ -1627,7 +1627,7 @@ static VALUE convert_encoding(VALUE source)
* the default.
* * *create_additions*: If set to false, the Parser doesn't create
* additions even if a matchin class and create_id was found. This option
- * defaults to true.
+ * defaults to false.
* * *object_class*: Defaults to Hash
* * *array_class*: Defaults to Array
*/
diff --git a/lib/json/common.rb b/lib/json/common.rb
index c01590b..426d933 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -148,7 +148,7 @@ module JSON
# the default.
# * *create_additions*: If set to false, the Parser doesn't create
# additions even if a matching class and create_id was found. This option
- # defaults to true.
+ # defaults to false.
# * *object_class*: Defaults to Hash
# * *array_class*: Defaults to Array
def parse(source, opts = {})
@@ -169,7 +169,7 @@ module JSON
# to true.
# * *create_additions*: If set to false, the Parser doesn't create
# additions even if a matching class and create_id was found. This option
- # defaults to true.
+ # defaults to false.
def parse!(source, opts = {})
opts = {
:max_nesting => false,