@@ -235,7 +235,7 @@ func Number(ctx context.Context, typ attr.Type, val tftypes.Value, target reflec
235
235
236
236
// FromInt creates an attr.Value using `typ` from an int64.
237
237
//
238
- // It is meant to be called through OutOf , not directly.
238
+ // It is meant to be called through FromValue , not directly.
239
239
func FromInt (ctx context.Context , typ attr.Type , val int64 , path * tftypes.AttributePath ) (attr.Value , diag.Diagnostics ) {
240
240
var diags diag.Diagnostics
241
241
err := tftypes .ValidateValue (tftypes .Number , val )
@@ -262,7 +262,7 @@ func FromInt(ctx context.Context, typ attr.Type, val int64, path *tftypes.Attrib
262
262
263
263
// FromUint creates an attr.Value using `typ` from a uint64.
264
264
//
265
- // It is meant to be called through OutOf , not directly.
265
+ // It is meant to be called through FromValue , not directly.
266
266
func FromUint (ctx context.Context , typ attr.Type , val uint64 , path * tftypes.AttributePath ) (attr.Value , diag.Diagnostics ) {
267
267
var diags diag.Diagnostics
268
268
err := tftypes .ValidateValue (tftypes .Number , val )
@@ -289,7 +289,7 @@ func FromUint(ctx context.Context, typ attr.Type, val uint64, path *tftypes.Attr
289
289
290
290
// FromFloat creates an attr.Value using `typ` from a float64.
291
291
//
292
- // It is meant to be called through OutOf , not directly.
292
+ // It is meant to be called through FromValue , not directly.
293
293
func FromFloat (ctx context.Context , typ attr.Type , val float64 , path * tftypes.AttributePath ) (attr.Value , diag.Diagnostics ) {
294
294
var diags diag.Diagnostics
295
295
err := tftypes .ValidateValue (tftypes .Number , val )
@@ -316,7 +316,7 @@ func FromFloat(ctx context.Context, typ attr.Type, val float64, path *tftypes.At
316
316
317
317
// FromBigFloat creates an attr.Value using `typ` from a *big.Float.
318
318
//
319
- // It is meant to be called through OutOf , not directly.
319
+ // It is meant to be called through FromValue , not directly.
320
320
func FromBigFloat (ctx context.Context , typ attr.Type , val * big.Float , path * tftypes.AttributePath ) (attr.Value , diag.Diagnostics ) {
321
321
var diags diag.Diagnostics
322
322
err := tftypes .ValidateValue (tftypes .Number , val )
@@ -343,7 +343,7 @@ func FromBigFloat(ctx context.Context, typ attr.Type, val *big.Float, path *tfty
343
343
344
344
// FromBigInt creates an attr.Value using `typ` from a *big.Int.
345
345
//
346
- // It is meant to be called through OutOf , not directly.
346
+ // It is meant to be called through FromValue , not directly.
347
347
func FromBigInt (ctx context.Context , typ attr.Type , val * big.Int , path * tftypes.AttributePath ) (attr.Value , diag.Diagnostics ) {
348
348
var diags diag.Diagnostics
349
349
fl := big .NewFloat (0 ).SetInt (val )
0 commit comments