Skip to content

Commit 46738cb

Browse files
committed
fix doc comments
1 parent 64823f3 commit 46738cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/convert.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func ToStringSlice(ctx context.Context, dst *[]string, list types.List, diagnost
8888
}
8989
}
9090

91-
// ToDuration converts a types.String containing a duration to a durationpb.Duration and handles diagnostics internally
91+
// ToDuration converts a timetypes.Duration to durationpb.Duration
9292
func ToDuration(dst **durationpb.Duration, src timetypes.GoDuration, diagnostics *diag.Diagnostics) {
9393
if src.IsNull() || src.IsUnknown() {
9494
*dst = nil
@@ -103,7 +103,7 @@ func ToDuration(dst **durationpb.Duration, src timetypes.GoDuration, diagnostics
103103
*dst = durationpb.New(d)
104104
}
105105

106-
// FromDuration converts a durationpb.Duration to a types.String
106+
// FromDuration converts a durationpb.Duration to a timetypes.GoDuration
107107
func FromDuration(d *durationpb.Duration) timetypes.GoDuration {
108108
if d == nil {
109109
return timetypes.NewGoDurationNull()

0 commit comments

Comments
 (0)