Fix docs on System.Text.Json.JsonElement.GetString
authorPaul Buonopane <Zenexer@users.noreply.github.com>
Wed, 10 Apr 2019 14:10:36 +0000 (10:10 -0400)
committerJeremy Barton <jbarton@microsoft.com>
Wed, 10 Apr 2019 14:10:36 +0000 (07:10 -0700)
Commit migrated from https://github.com/dotnet/corefx/commit/ffd0ae699611a7b172408ebd96b52f6eec0ebe67

src/libraries/System.Text.Json/src/System/Text/Json/Document/JsonElement.cs

index 1c780a5..c6b288e 100644 (file)
@@ -338,9 +338,9 @@ namespace System.Text.Json
         /// <remarks>
         ///   This method does not create a string representation of values other than JSON strings.
         /// </remarks>
-        /// <returns>The value of the element as a <see cref="bool"/>.</returns>
+        /// <returns>The value of the element as a <see cref="string"/>.</returns>
         /// <exception cref="InvalidOperationException">
-        ///   This value's <see cref="Type"/> is not <see cref="JsonValueType.String"/>.
+        ///   This value's <see cref="Type"/> is neither <see cref="JsonValueType.String"/> nor <see cref="JsonValueType.Null"/>.
         /// </exception>
         /// <exception cref="ObjectDisposedException">
         ///   The parent <see cref="JsonDocument"/> has been disposed.