Skip to content

Commit 473da40

Browse files
authored
FlyBy typo fix in FeatureCollectionExtensions.cs (#55217)
* FlyBy typo fix in FeatureCollectionExtensions.cs * Fixed more typos in vicinity
1 parent aed195f commit 473da40

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Extensions/Features/src/FeatureCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Http.Features;
1212
public static class FeatureCollectionExtensions
1313
{
1414
/// <summary>
15-
/// Retrives the requested feature from the collection.
15+
/// Retrieves the requested feature from the collection.
1616
/// Throws an <see cref="InvalidOperationException"/> if the feature is not present.
1717
/// </summary>
1818
/// <param name="featureCollection">The <see cref="IFeatureCollection"/>.</param>
@@ -27,7 +27,7 @@ public static TFeature GetRequiredFeature<TFeature>(this IFeatureCollection feat
2727
}
2828

2929
/// <summary>
30-
/// Retrives the requested feature from the collection.
30+
/// Retrieves the requested feature from the collection.
3131
/// Throws an <see cref="InvalidOperationException"/> if the feature is not present.
3232
/// </summary>
3333
/// <param name="featureCollection">feature collection</param>

src/Extensions/Features/test/FeatureCollectionExtensionsTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ public void AddedFeatureGetsReturned()
1717
features.Set<IThing>(thing);
1818

1919
// Act
20-
var retrivedThing = features.GetRequiredFeature<IThing>();
20+
var retrievedThing = features.GetRequiredFeature<IThing>();
2121

2222
// Assert
23-
Assert.NotNull(retrivedThing);
24-
Assert.Equal(retrivedThing, thing);
23+
Assert.NotNull(retrievedThing);
24+
Assert.Equal(retrievedThing, thing);
2525
}
2626

2727
[Fact]
28-
public void ExceptionThrowned_WhenAskedForUnknownFeature()
28+
public void ExceptionThrown_WhenAskedForUnknownFeature()
2929
{
3030
// Arrange
3131
var features = new FeatureCollection();

0 commit comments

Comments
 (0)