Skip to content

Commit

Permalink
Update Provider.SetRecords documentation to clearly state it is for u…
Browse files Browse the repository at this point in the history
…pdates only
  • Loading branch information
fabiante committed Nov 13, 2024
1 parent d0316c1 commit c2bdd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (p *Provider) AppendRecords(ctx context.Context, zone string, records []lib
return successfullyAppendedRecords, nil
}

// SetRecords sets the records in the zone, either by updating existing records or creating new ones.
// SetRecords updates the records in the zone. This requires record IDs to be set.
// It returns the updated records.
func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
successfullyUpdatedRecords := []libdns.Record{}
Expand Down

0 comments on commit c2bdd52

Please sign in to comment.