Skip to content

Commit cc6bbf8

Browse files
Migrate 0, 0, 0 to vector.zero where appropriate
1 parent c19eafd commit cc6bbf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/en-us/luau/tuples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ A **tuple** is a list of values. Many [methods](./functions.md#methods) and [cal
1010
If a [method](./functions.md#methods) or [callback](./functions.md#callbacks) accepts a tuple as a parameter, then it accepts multiple values. For example, the API Reference shows that the `Class.BindableFunction:Invoke()` method accepts a "Tuple" as a parameter, so it accepts multiple arguments.
1111

1212
```lua
13-
BindableFunction:Invoke(1, true, "string", vector.new(0, 0, 0))
13+
BindableFunction:Invoke(1, true, "string", vector.zero)
1414
```
1515

1616
## Returns

content/en-us/reference/engine/classes/ViewportFrame.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ properties:
164164
A `Datatype.Vector3` representing the direction of the light source.
165165
description: |
166166
A `Datatype.Vector3` representing the direction of the light source from
167-
position `Datatype.Vector3|vector.new(0, 0, 0)`. Defaults to
167+
position `Datatype.Vector3|vector.zero`. Defaults to
168168
`Datatype.Vector3|vector.new(-1, -1, -1)`.
169169
code_samples:
170170
type: Vector3

0 commit comments

Comments
 (0)