Skip to content

Commit 50eb7b1

Browse files
authored
Fix typos (pointfreeco#3)
1 parent e5ef373 commit 50eb7b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PerceptionMacros/Extensions.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ extension TypeSyntax {
159159
substituted += ","
160160
case .identifier(let identifier):
161161
let type: TypeSyntax = "\(raw: identifier)"
162-
guard let substituedType = type.genericSubstitution(parameters) else {
162+
guard let substitutedType = type.genericSubstitution(parameters) else {
163163
return nil
164164
}
165-
substituted += substituedType
165+
substituted += substitutedType
166166
break
167167
default:
168168
// ignore?
@@ -222,7 +222,7 @@ extension DeclGroupSyntax {
222222
return standins
223223
}
224224

225-
func hasMemberFunction(equvalentTo other: FunctionDeclSyntax) -> Bool {
225+
func hasMemberFunction(equivalentTo other: FunctionDeclSyntax) -> Bool {
226226
for member in memberBlock.members {
227227
if let function = member.as(MemberBlockItemSyntax.self)?.decl.as(FunctionDeclSyntax.self) {
228228
if function.isEquivalent(to: other) {
@@ -257,7 +257,7 @@ extension DeclGroupSyntax {
257257
func addIfNeeded(_ decl: DeclSyntax?, to declarations: inout [DeclSyntax]) {
258258
guard let decl else { return }
259259
if let fn = decl.as(FunctionDeclSyntax.self) {
260-
if !hasMemberFunction(equvalentTo: fn) {
260+
if !hasMemberFunction(equivalentTo: fn) {
261261
declarations.append(decl)
262262
}
263263
} else if let property = decl.as(VariableDeclSyntax.self) {

0 commit comments

Comments
 (0)