chore: fix some function names (#2108)

Signed-off-by: jinjiadu <jinjiadu@aliyun.com>
This commit is contained in:
jinjiadu 2024-10-29 18:07:10 +08:00 committed by GitHub
parent de9fb7ccca
commit 384dc4cb93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1004,7 +1004,7 @@ func (c *Context) referenceAnalyzer(config *configs.Config, state *states.State)
return globalref.NewAnalyzer(config, schemas.Providers), diags
}
// relevantResourcesForPlan implements the heuristic we use to populate the
// relevantResourceAttrsForPlan implements the heuristic we use to populate the
// RelevantResources field of returned plans.
func (c *Context) relevantResourceAttrsForPlan(config *configs.Config, plan *plans.Plan) ([]globalref.ResourceAttr, tfdiags.Diagnostics) {
azr, diags := c.referenceAnalyzer(config, plan.PriorState)

View File

@ -318,7 +318,7 @@ func (m ReferenceMap) References(v dag.Vertex) []dag.Vertex {
return matches
}
// addReferences returns the set of vertices that the given reference requires
// addReference returns the set of vertices that the given reference requires
// within a given module. It additionally excludes the current vertex.
func (m ReferenceMap) addReference(path addrs.Module, current dag.Vertex, ref *addrs.Reference) []dag.Vertex {
var matches []dag.Vertex