Skip to content

Commit e284796

Browse files
committed
chore: fix some function names in comment
Signed-off-by: peicuiping <[email protected]>
1 parent 5364220 commit e284796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sema/check_composite_declaration.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func availableDefaultFunctions(compositeType *CompositeType) map[string]struct{}
321321
return defaultFunctions
322322
}
323323

324-
// declareCompositeNestedTypes declares the types nested in a composite,
324+
// declareCompositeLikeNestedTypes declares the types nested in a composite,
325325
// and the constructors for them if `declareConstructors` is true
326326
// and `kind` is `ContainerKindComposite`.
327327
//
@@ -769,7 +769,7 @@ func (checker *Checker) declareAttachmentMembersAndValue(declaration *ast.Attach
769769
checker.declareCompositeLikeMembersAndValue(declaration)
770770
}
771771

772-
// declareCompositeMembersAndValue declares the members and the value
772+
// declareCompositeLikeMembersAndValue declares the members and the value
773773
// (e.g. constructor function for non-contract types; instance for contracts)
774774
// for the given composite declaration, and recursively for all nested declarations.
775775
//

0 commit comments

Comments
 (0)