Skip to content

Commit 26be6f5

Browse files
committed
Fix typo
1 parent 4c29f11 commit 26be6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.ApiExplorer/src/EndpointMetadataApiDescriptionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static bool TypesAreCompatible(Type? apiResponseType, Type? metadaType)
419419
// We need to a special check for cases where the inferred type is different than the one specified in attributes.
420420
// For example, an endpoint that defines [ProducesResponseType<IEnumerable<WeatherForecast>>],
421421
// but the endpoint returns weatherForecasts.ToList(). Because List<> is a different type than IEnumerable<>, it would incorrectly return false.
422-
// Currently, we do a "simple" biderectional check to see if the types are assignable to each other.
422+
// Currently, we do a "simple" bidirectional check to see if the types are assignable to each other.
423423
// This isn't very thorough, but it works for most cases.
424424
// For more information, check the related bug: https://github.com/dotnet/aspnetcore/issues/60518
425425
return apiResponseType == metadaType ||

0 commit comments

Comments
 (0)