Skip to content

Commit 0a64427

Browse files
committed
table.pack is magic, not string.pack
1 parent 2b5f463 commit 0a64427

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

generated/secondlife.d.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ declare string: {
481481
len: (s: string) -> number,
482482
lower: (s: string) -> string,
483483
match: (s: string, pattern: string, init: number?) -> ...string, -- magic type
484-
pack: (fmt: string, ...any) -> string, -- magic type
484+
pack: (fmt: string, ...any) -> string,
485485
packsize: (fmt: string) -> number,
486486
rep: (s: string, n: number) -> string,
487487
reverse: (s: string) -> string,
@@ -508,7 +508,7 @@ declare table: {
508508
extend: <V>(a: {V}, b: {V}) -> {V},
509509
remove: <V>(a: {V}, i: number?) -> V?,
510510
sort: <V>(a: {V}, f: ((a: V, b: V) -> boolean)?) -> (),
511-
pack: <V>(...V) -> { n: number, [number]: V },
511+
pack: <V>(...V) -> { n: number, [number]: V }, -- magic type
512512
unpack: <V>(a: {V}, i: number?, j: number?) -> ...V,
513513
move: <V>(src: {V}, i: number, j: number, d: number, dest: {V}?) -> {V},
514514
create: <V>(n: number, v: V?) -> {V},

slua_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,6 @@ modules:
21382138
type: ...any
21392139
return-type: string
21402140
must-use: true
2141-
magic-type: true
21422141
- name: packsize
21432142
comment: Returns the size of a packed string for the given format.
21442143
parameters:
@@ -2366,6 +2365,7 @@ modules:
23662365
type: ...V
23672366
return-type: '{ n: number, [number]: V }'
23682367
must-use: true
2368+
magic-type: true
23692369
- name: unpack
23702370
comment: Unpacks array elements into multiple return values.
23712371
type-parameters: [V]

0 commit comments

Comments
 (0)