Fix comment typos in preceding commit

This commit is contained in:
Steve Sanderson 2017-03-31 10:36:53 +01:00
parent 4f351bd37c
commit d19150ed22
3 changed files with 5 additions and 6 deletions

View File

@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
/// Gets or sets a value to indicate whether the content type was specified by server-side code.
/// This allows <see cref="IOutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)"/> to
/// implement stricter filtering on content types that, for example, are being considered purely
/// of an incoming Accept header.
/// because of an incoming Accept header.
/// </summary>
public virtual bool ContentTypeIsServerDefined { get; set; }

View File

@ -194,7 +194,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
/// Gets the type of the <see cref="MediaType"/>.
/// </summary>
/// <example>
/// For the media type <c>"application/json"</c>, the property gives the value <c>"application"</c>.
/// For the media type <c>"application/json"</c>, this property gives the value <c>"application"</c>.
/// </example>
public StringSegment Type { get; }
@ -207,7 +207,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
/// Gets the subtype of the <see cref="MediaType"/>.
/// </summary>
/// <example>
/// For the media type <c>"application/vnd.example+json"</c>, the property gives the value
/// For the media type <c>"application/vnd.example+json"</c>, this property gives the value
/// <c>"vnd.example+json"</c>.
/// </example>
public StringSegment SubType { get; private set; }
@ -216,7 +216,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
/// Gets the subtype of the <see cref="MediaType"/>, excluding any structured syntax suffix.
/// </summary>
/// <example>
/// For the media type <c>"application/vnd.example+json"</c>, the property gives the value
/// For the media type <c>"application/vnd.example+json"</c>, this property gives the value
/// <c>"vnd.example"</c>.
/// </example>
public StringSegment SubTypeWithoutSuffix { get; private set; }
@ -225,7 +225,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
/// Gets the structured syntax suffix of the <see cref="MediaType"/> if it has one.
/// </summary>
/// <example>
/// For the media type <c>"application/vnd.example+json"</c>, the property gives the value
/// For the media type <c>"application/vnd.example+json"</c>, this property gives the value
/// <c>"json"</c>.
/// </example>
public StringSegment SubTypeSuffix { get; private set; }

View File

@ -123,7 +123,6 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
}
else
{
// Confirm this formatter
var parsedContentType = new MediaType(context.ContentType);
for (var i = 0; i < SupportedMediaTypes.Count; i++)
{