Skip to content

Commit

Permalink
Fix documentation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Oct 25, 2023
1 parent a4b22ac commit 4195d29
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion docs/ios/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override

## Materials

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.
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.

## Font

Expand Down
10 changes: 5 additions & 5 deletions docs/ios/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
```swift
define averageColor (color.red + color.green + color.blue) / 3
define isBrightColor averageColor >= 0.5
print isBrightColor // true or false
print isBrightColor // prints true or false
```

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

```swift
if a and b {
print "both a and b were true"
print "both a and b were true"
}
```

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

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

```swift
print cube.bounds.size // 1 1 1
print cube.polygons.count // 6
print cube.bounds.size // prints 1 1 1
print cube.polygons.count // prints 6
```

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`:
Expand Down
2 changes: 1 addition & 1 deletion docs/ios/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us

## Models

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:
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:

```swift
define rocket {
Expand Down
2 changes: 1 addition & 1 deletion docs/mac/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override

## Materials

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.
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.

## Font

Expand Down
10 changes: 5 additions & 5 deletions docs/mac/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
```swift
define averageColor (color.red + color.green + color.blue) / 3
define isBrightColor averageColor >= 0.5
print isBrightColor // true or false
print isBrightColor // prints true or false
```

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

```swift
if a and b {
print "both a and b were true"
print "both a and b were true"
}
```

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

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

```swift
print cube.bounds.size // 1 1 1
print cube.polygons.count // 6
print cube.bounds.size // prints 1 1 1
print cube.polygons.count // prints 6
```

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`:
Expand Down
2 changes: 1 addition & 1 deletion docs/mac/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us

## Models

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:
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:

```swift
define rocket {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `smoothing` command can be used anywhere in the ShapeScript file to override

## Materials

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.
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.

## Font

Expand Down
10 changes: 5 additions & 5 deletions docs/src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ But they can also be assigned to a symbol and passed around:
```swift
define averageColor (color.red + color.green + color.blue) / 3
define isBrightColor averageColor >= 0.5
print isBrightColor // true or false
print isBrightColor // prints true or false
```

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

```swift
if a and b {
print "both a and b were true"
print "both a and b were true"
}
```

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

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

```swift
print cube.bounds.size // 1 1 1
print cube.polygons.count // 6
print cube.bounds.size // prints 1 1 1
print cube.polygons.count // prints 6
```

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`:
Expand Down
2 changes: 1 addition & 1 deletion docs/src/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ In this way, the loaded shape is bound to a symbol of your choice, and can be us

## Models

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:
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:

```swift
define rocket {
Expand Down

0 comments on commit 4195d29

Please sign in to comment.