Skip to content

Commit 4195d29

Browse files
committed
Fix documentation typos
1 parent a4b22ac commit 4195d29

9 files changed

Lines changed: 21 additions & 21 deletions

File tree

docs/ios/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override
5555

5656
## Materials
5757

58-
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documents in the [materials](materials.md) section.
58+
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documented in the [materials](materials.md) section.
5959

6060
## Font
6161

docs/ios/expressions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
8585
```swift
8686
define averageColor (color.red + color.green + color.blue) / 3
8787
define isBrightColor averageColor >= 0.5
88-
print isBrightColor // true or false
88+
print isBrightColor // prints true or false
8989
```
9090

9191
## Linear Algebra
@@ -159,7 +159,7 @@ Unlike some languages, ShapeScript's boolean operators are implemented as keywor
159159

160160
```swift
161161
if a and b {
162-
print "both a and b were true"
162+
print "both a and b were true"
163163
}
164164
```
165165

@@ -186,7 +186,7 @@ Like other operators, the dot operator can be used as part of a larger expressio
186186
```swift
187187
color 1 0.5 0.2
188188
define averageColor (color.red + color.green + color.blue) / 3
189-
print averageColor // 0.5667
189+
print averageColor // prints 0.5667
190190
```
191191

192192
For strings, you can use the `lines`, `words` and `characters` members:
@@ -210,8 +210,8 @@ for point in circle.points {
210210
For [meshes](meshes.md) you can access the `name`, `bounds` and `polygons` members:
211211

212212
```swift
213-
print cube.bounds.size // 1 1 1
214-
print cube.polygons.count // 6
213+
print cube.bounds.size // prints 1 1 1
214+
print cube.polygons.count // prints 6
215215
```
216216

217217
For [polygons](meshes.md#polygons-and-points) you can get the `bounds` or `center`, or use `points` to access the individual vertices. For points you can access the `position` and `color`:

docs/ios/import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us
2525

2626
## Models
2727

28-
The `import` command is not limited to loading `.shape` files. It can load models in any of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
28+
The `import` command is not limited to loading `.shape` files. It can load models in many of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
2929

3030
```swift
3131
define rocket {

docs/mac/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override
5555

5656
## Materials
5757

58-
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documents in the [materials](materials.md) section.
58+
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documented in the [materials](materials.md) section.
5959

6060
## Font
6161

docs/mac/expressions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
8585
```swift
8686
define averageColor (color.red + color.green + color.blue) / 3
8787
define isBrightColor averageColor >= 0.5
88-
print isBrightColor // true or false
88+
print isBrightColor // prints true or false
8989
```
9090

9191
## Linear Algebra
@@ -159,7 +159,7 @@ Unlike some languages, ShapeScript's boolean operators are implemented as keywor
159159

160160
```swift
161161
if a and b {
162-
print "both a and b were true"
162+
print "both a and b were true"
163163
}
164164
```
165165

@@ -186,7 +186,7 @@ Like other operators, the dot operator can be used as part of a larger expressio
186186
```swift
187187
color 1 0.5 0.2
188188
define averageColor (color.red + color.green + color.blue) / 3
189-
print averageColor // 0.5667
189+
print averageColor // prints 0.5667
190190
```
191191

192192
For strings, you can use the `lines`, `words` and `characters` members:
@@ -210,8 +210,8 @@ for point in circle.points {
210210
For [meshes](meshes.md) you can access the `name`, `bounds` and `polygons` members:
211211

212212
```swift
213-
print cube.bounds.size // 1 1 1
214-
print cube.polygons.count // 6
213+
print cube.bounds.size // prints 1 1 1
214+
print cube.polygons.count // prints 6
215215
```
216216

217217
For [polygons](meshes.md#polygons-and-points) you can get the `bounds` or `center`, or use `points` to access the individual vertices. For points you can access the `position` and `color`:

docs/mac/import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us
2525

2626
## Models
2727

28-
The `import` command is not limited to loading `.shape` files. It can load models in any of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
28+
The `import` command is not limited to loading `.shape` files. It can load models in many of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
2929

3030
```swift
3131
define rocket {

docs/src/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override
5555

5656
## Materials
5757

58-
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documents in the [materials](materials.md) section.
58+
The `color`, `texture` and `opacity` commands are used to specify the appearance of shapes when rendered. These commands are documented in the [materials](materials.md) section.
5959

6060
## Font
6161

docs/src/expressions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
8585
```swift
8686
define averageColor (color.red + color.green + color.blue) / 3
8787
define isBrightColor averageColor >= 0.5
88-
print isBrightColor // true or false
88+
print isBrightColor // prints true or false
8989
```
9090

9191
## Linear Algebra
@@ -159,7 +159,7 @@ Unlike some languages, ShapeScript's boolean operators are implemented as keywor
159159

160160
```swift
161161
if a and b {
162-
print "both a and b were true"
162+
print "both a and b were true"
163163
}
164164
```
165165

@@ -186,7 +186,7 @@ Like other operators, the dot operator can be used as part of a larger expressio
186186
```swift
187187
color 1 0.5 0.2
188188
define averageColor (color.red + color.green + color.blue) / 3
189-
print averageColor // 0.5667
189+
print averageColor // prints 0.5667
190190
```
191191

192192
For strings, you can use the `lines`, `words` and `characters` members:
@@ -210,8 +210,8 @@ for point in circle.points {
210210
For [meshes](meshes.md) you can access the `name`, `bounds` and `polygons` members:
211211

212212
```swift
213-
print cube.bounds.size // 1 1 1
214-
print cube.polygons.count // 6
213+
print cube.bounds.size // prints 1 1 1
214+
print cube.polygons.count // prints 6
215215
```
216216

217217
For [polygons](meshes.md#polygons-and-points) you can get the `bounds` or `center`, or use `points` to access the individual vertices. For points you can access the `position` and `color`:

docs/src/import.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us
2525

2626
## Models
2727

28-
The `import` command is not limited to loading `.shape` files. It can load models in any of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
28+
The `import` command is not limited to loading `.shape` files. It can load models in many of the [export formats](export.md) supported by ShapeScript. Imported models can be used just like imported script files:
2929

3030
```swift
3131
define rocket {

0 commit comments

Comments
 (0)