mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove "Example:" because I didn't use it consistently enough.
This commit is contained in:
parent
638fb6cbb7
commit
e2f72a92d5
1 changed files with 0 additions and 4 deletions
|
@ -119,8 +119,6 @@ A few other alternative designs have been proposed in the past, but ultimately w
|
||||||
|
|
||||||
### 1: `setmetatable()`
|
### 1: `setmetatable()`
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
type Vec3 = setmetatable({ x: number, y: number, z: number }, { __add: (Vec3, Vec3) -> Vec3 })
|
type Vec3 = setmetatable({ x: number, y: number, z: number }, { __add: (Vec3, Vec3) -> Vec3 })
|
||||||
```
|
```
|
||||||
|
@ -173,8 +171,6 @@ setmetatable({
|
||||||
|
|
||||||
### 2: `setmetatable<>`
|
### 2: `setmetatable<>`
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
type Vec3 = setmetatable<{ x: number, y: number, z: number }, { __add: (Vec3, Vec3) -> Vec3 }>
|
type Vec3 = setmetatable<{ x: number, y: number, z: number }, { __add: (Vec3, Vec3) -> Vec3 }>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue