Skip to content

Commit 3b1981e

Browse files
committed
Using active voice (#418)
1 parent 20bbee3 commit 3b1981e

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

website/docs/plugin/framework/handling-data/blocks.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ For list and set blocks, configurations can implement [`dynamic` block expressio
3232

3333
## Terraform Configuration
3434

35-
Within Terraform configuration, nested blocks are represented using the following syntax:
35+
Use the following syntax in Terraform configuration for nested blocks:
3636

3737
```hcl
3838
resource "example_resource" "example" {
@@ -113,7 +113,7 @@ resource "example_resource" "example" {
113113

114114
## Schema
115115

116-
Within the schema, nested blocks are defined as follows:
116+
Define nested blocks in the schema as follows:
117117

118118
```go
119119
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {

website/docs/plugin/framework/handling-data/terraform-concepts.mdx

+13-13
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Simple attributes include attributes for boolean, float64, int64, number and str
2424

2525
#### Terraform Configuration
2626

27-
Within Terraform configuration simple attributes are represented using the following syntax:
27+
Use the following syntax in Terraform configuration for simple attributes:
2828

2929
```hcl
3030
resource "example_resource" "example" {
@@ -41,7 +41,7 @@ resource "example_resource" "example" {
4141

4242
#### Schema
4343

44-
Within the schema, simple attributes are defined as follows:
44+
Define simple attributes in the schema as follows:
4545

4646
```go
4747
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
@@ -77,7 +77,7 @@ Collection attributes include attributes for lists, maps and sets.
7777

7878
#### Terraform Configuration
7979

80-
Within Terraform configuration, collection attributes are represented using the following syntax:
80+
Use the following syntax in Terraform configuration for collection attributes:
8181

8282
```hcl
8383
resource "example_resource" "example" {
@@ -91,7 +91,7 @@ resource "example_resource" "example" {
9191

9292
#### Schema
9393

94-
Within the schema collection attributes are defined as follows:
94+
Define collection attributes in the schema as follows:
9595

9696
```go
9797
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
@@ -118,13 +118,13 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
118118

119119
### Object Attribute
120120

121-
An object attribute is used when the attribute is an atomic unit and all fields defined within it need to be specified.
121+
Use an object attribute when the attribute is an atomic unit and all fields defined within it need to be specified.
122122

123123
Nested attributes (i.e., ListNestedAttribute, MapNestedAttribute, SetNestedAttribute and SingleNestedAttribute) should be used when any of the inner fields should have their own flags or metadata (e.g., Required, Optional, Sensitive etc).
124124

125125
#### Terraform Configuration
126126

127-
Within Terraform configuration, object attributes are represented using the following syntax:
127+
Use the following syntax in Terraform configuration for object attributes:
128128

129129
```hcl
130130
resource "example_resource" "example" {
@@ -143,7 +143,7 @@ resource "example_resource" "example" {
143143

144144
#### Schema
145145

146-
Within the schema, object attributes are defined as follows:
146+
Define object attributes in the schema as follows:
147147

148148
```go
149149
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
@@ -171,7 +171,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
171171

172172
#### Terraform Configuration
173173

174-
Within Terraform configuration, nested attributes are represented using the following syntax:
174+
Use the following syntax in Terraform configuration for nested attributes:
175175

176176
```hcl
177177
resource "example_resource" "example" {
@@ -237,7 +237,7 @@ resource "example_resource" "example" {
237237

238238
#### Schema
239239

240-
Within the schema, nested attributes are defined as follows:
240+
Define nested attributes in the schema as follows:
241241

242242
```go
243243
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
@@ -324,7 +324,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
324324

325325
#### Terraform Configuration
326326

327-
Within Terraform configuration, nested blocks are represented using the following syntax:
327+
Use the following syntax in Terraform configuration for nested blocks:
328328

329329
```hcl
330330
resource "example_resource" "example" {
@@ -405,7 +405,7 @@ resource "example_resource" "example" {
405405

406406
#### Schema
407407

408-
Within the schema, nested blocks are defined as follows:
408+
Define nested blocks in the schema as follows:
409409

410410
```go
411411
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {
@@ -502,7 +502,7 @@ func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest
502502

503503
## Custom Types
504504

505-
Custom types can be used for both attributes and blocks.
505+
You can use custom types for both attributes and blocks.
506506

507507
### Custom Type and Value
508508

@@ -579,7 +579,7 @@ resource "example_resource" "example" {
579579

580580
### Schema
581581

582-
Within the schema, the custom type is used as follows:
582+
Use the custom type in the schema as follows:
583583

584584
```go
585585
func (e *exampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) {

0 commit comments

Comments
 (0)