Skip to content

Commit cc89207

Browse files
pranavkmmkArtakMSFT
authored andcommitted
Fixup doc comments for ContentResult
Fixes #5159
1 parent 2791dbf commit cc89207

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Mvc/src/Microsoft.AspNetCore.Mvc.Core/ControllerBase.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ public virtual ObjectResult StatusCode([ActionResultStatusCode] int statusCode,
221221
}
222222

223223
/// <summary>
224-
/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
225-
/// <paramref name="content"/> string.
224+
/// Creates a <see cref="ContentResult"/> object by specifying a <paramref name="content"/> string.
226225
/// </summary>
227226
/// <param name="content">The content to write to the response.</param>
228227
/// <returns>The created <see cref="ContentResult"/> object for the response.</returns>
@@ -231,7 +230,7 @@ public virtual ContentResult Content(string content)
231230
=> Content(content, (MediaTypeHeaderValue)null);
232231

233232
/// <summary>
234-
/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
233+
/// Creates a <see cref="ContentResult"/> object by specifying a
235234
/// <paramref name="content"/> string and a content type.
236235
/// </summary>
237236
/// <param name="content">The content to write to the response.</param>
@@ -242,7 +241,7 @@ public virtual ContentResult Content(string content, string contentType)
242241
=> Content(content, MediaTypeHeaderValue.Parse(contentType));
243242

244243
/// <summary>
245-
/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
244+
/// Creates a <see cref="ContentResult"/> object by specifying a
246245
/// <paramref name="content"/> string, a <paramref name="contentType"/>, and <paramref name="contentEncoding"/>.
247246
/// </summary>
248247
/// <param name="content">The content to write to the response.</param>
@@ -262,7 +261,7 @@ public virtual ContentResult Content(string content, string contentType, Encodin
262261
}
263262

264263
/// <summary>
265-
/// Creates a <see cref="ContentResult"/> object with <see cref="StatusCodes.Status200OK"/> by specifying a
264+
/// Creates a <see cref="ContentResult"/> object by specifying a
266265
/// <paramref name="content"/> string and a <paramref name="contentType"/>.
267266
/// </summary>
268267
/// <param name="content">The content to write to the response.</param>
@@ -282,7 +281,7 @@ public virtual ContentResult Content(string content, MediaTypeHeaderValue conten
282281

283282
/// <summary>
284283
/// Creates a <see cref="NoContentResult"/> object that produces an empty
285-
/// <see cref="StatusCodes.Status204NoContent"/> response.
284+
/// <see cref="StatusCodes.Status204NoContent"/> response.
286285
/// </summary>
287286
/// <returns>The created <see cref="NoContentResult"/> object for the response.</returns>
288287
[NonAction]

0 commit comments

Comments
 (0)