Skip to content

Commit

Permalink
Migrate 0, 0, 0 to vector.zero where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
CadeusTheGreat authored Dec 13, 2024
1 parent c19eafd commit cc6bbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/en-us/luau/tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A **tuple** is a list of values. Many [methods](./functions.md#methods) and [cal
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.

```lua
BindableFunction:Invoke(1, true, "string", vector.new(0, 0, 0))
BindableFunction:Invoke(1, true, "string", vector.zero)
```

## Returns
Expand Down
2 changes: 1 addition & 1 deletion content/en-us/reference/engine/classes/ViewportFrame.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ properties:
A `Datatype.Vector3` representing the direction of the light source.
description: |
A `Datatype.Vector3` representing the direction of the light source from
position `Datatype.Vector3|vector.new(0, 0, 0)`. Defaults to
position `Datatype.Vector3|vector.zero`. Defaults to
`Datatype.Vector3|vector.new(-1, -1, -1)`.
code_samples:
type: Vector3
Expand Down

0 comments on commit cc6bbf8

Please sign in to comment.