From e284796601a82a49da18aa1e14b4f5f726768d76 Mon Sep 17 00:00:00 2001 From: peicuiping Date: Tue, 31 Dec 2024 14:42:39 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: peicuiping --- sema/check_composite_declaration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sema/check_composite_declaration.go b/sema/check_composite_declaration.go index bbd3728aa..df270a467 100644 --- a/sema/check_composite_declaration.go +++ b/sema/check_composite_declaration.go @@ -321,7 +321,7 @@ func availableDefaultFunctions(compositeType *CompositeType) map[string]struct{} return defaultFunctions } -// declareCompositeNestedTypes declares the types nested in a composite, +// declareCompositeLikeNestedTypes declares the types nested in a composite, // and the constructors for them if `declareConstructors` is true // and `kind` is `ContainerKindComposite`. // @@ -769,7 +769,7 @@ func (checker *Checker) declareAttachmentMembersAndValue(declaration *ast.Attach checker.declareCompositeLikeMembersAndValue(declaration) } -// declareCompositeMembersAndValue declares the members and the value +// declareCompositeLikeMembersAndValue declares the members and the value // (e.g. constructor function for non-contract types; instance for contracts) // for the given composite declaration, and recursively for all nested declarations. //