Fix comment for base::JSONReader::Read().
Correctly describe the return value on failure after making changes in r632920. Change-Id: Ie08d91d8081c5ced6a563eb800e57cae1d04cd20 Reviewed-on: https://chromium-review.googlesource.com/c/1477958 Auto-Submit: Lei Zhang <thestig@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#633629}
This commit is contained in:
@@ -110,8 +110,7 @@ class BASE_EXPORT JSONReader {
|
||||
~JSONReader();
|
||||
|
||||
// Reads and parses |json|, returning a Value.
|
||||
// If |json| is not a properly formed JSON string, returns a Value of type
|
||||
// NONE.
|
||||
// If |json| is not a properly formed JSON string, returns base::nullopt.
|
||||
static Optional<Value> Read(StringPiece json,
|
||||
int options = JSON_PARSE_RFC,
|
||||
int max_depth = kStackMaxDepth);
|
||||
|
Reference in New Issue
Block a user