Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: peicuiping <[email protected]>
  • Loading branch information
peicuiping committed Dec 31, 2024
1 parent 5364220 commit e284796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sema/check_composite_declaration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
//
Expand Down Expand Up @@ -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.
//
Expand Down

0 comments on commit e284796

Please sign in to comment.