diff --git a/website/docs/plugin/framework/data-sources/configure.mdx b/website/docs/plugin/framework/data-sources/configure.mdx index 729f887e0..0fac9a737 100644 --- a/website/docs/plugin/framework/data-sources/configure.mdx +++ b/website/docs/plugin/framework/data-sources/configure.mdx @@ -66,8 +66,8 @@ type ThingDataSource struct { } func (d *ThingDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { - // A nil check should always be performed when handling ProviderData as it - // is only set after the ConfigureProvider RPC has been called by Terraform. + // Always perform a nil check when handling ProviderData because Terraform + // sets that data after it calls the ConfigureProvider RPC. if req.ProviderData == nil { return } diff --git a/website/docs/plugin/framework/resources/configure.mdx b/website/docs/plugin/framework/resources/configure.mdx index 5cb3f9b3e..b828bea02 100644 --- a/website/docs/plugin/framework/resources/configure.mdx +++ b/website/docs/plugin/framework/resources/configure.mdx @@ -66,8 +66,8 @@ type ThingResource struct { } func (r *ThingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { - // A nil check should always be performed when handling ProviderData as it - // is only set after the ConfigureProvider RPC has been called by Terraform. + // Always perform a nil check when handling ProviderData because Terraform + // sets that data after it calls the ConfigureProvider RPC. if req.ProviderData == nil { return }