Skip to content

Commit 040ecc6

Browse files
Fix some typos in the codebase (#1852)
Co-authored-by: Chris Pulman <[email protected]>
1 parent 30f41ac commit 040ecc6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: InterfaceStubGenerator.Shared/InterfaceStubGenerator.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ bool isOverrideOrExplicitImplementation
538538
// Need to loop over the constraints and create them
539539
foreach (var typeParameter in typeParameters)
540540
{
541-
WriteConstraitsForTypeParameter(
541+
WriteConstraintsForTypeParameter(
542542
source,
543543
typeParameter,
544544
isOverrideOrExplicitImplementation
@@ -548,7 +548,7 @@ bool isOverrideOrExplicitImplementation
548548
return source.ToString();
549549
}
550550

551-
static void WriteConstraitsForTypeParameter(
551+
static void WriteConstraintsForTypeParameter(
552552
StringBuilder source,
553553
ITypeParameterSymbol typeParameter,
554554
bool isOverrideOrExplicitImplementation
@@ -750,11 +750,11 @@ static string UniqueName(string name, HashSet<string> methodNames)
750750
return candidateName;
751751
}
752752
753-
static bool IsRefitMethod(IMethodSymbol? methodSymbol, INamedTypeSymbol httpMethodAttibute)
753+
static bool IsRefitMethod(IMethodSymbol? methodSymbol, INamedTypeSymbol httpMethodAttribute)
754754
{
755755
return methodSymbol
756756
?.GetAttributes()
757-
.Any(ad => ad.AttributeClass?.InheritsFromOrEquals(httpMethodAttibute) == true)
757+
.Any(ad => ad.AttributeClass?.InheritsFromOrEquals(httpMethodAttribute) == true)
758758
== true;
759759
}
760760

Diff for: Refit/UniqueName.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static string ForType(Type refitInterfaceType)
4343

4444
// Refit types will be generated as private classes within a Generated type in namespace
4545
// Refit.Implementation
46-
// E.g., Refit.Implementation.Generated.NamespaceContaingTpeInterfaceType
46+
// E.g., Refit.Implementation.Generated.NamespaceContainingTpeInterfaceType
4747

4848
var refitTypeName =
4949
$"Refit.Implementation.Generated+{ns}{interfaceTypeName}{genericArgs}";

0 commit comments

Comments
 (0)