Skip to content

Commit 25c0af1

Browse files
committed
fix prettier
1 parent a97ef3c commit 25c0af1

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

special/5.5-plus.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
declare namespace table {
44
/**
55
* Creates a new empty table, preallocating memory. This preallocation may help
6-
* performance and save memory when you know in advance how many elements the
6+
* performance and save memory when you know in advance how many elements the
77
* table will have.
88
*
99
* @param nseq hint for how many elements the table will have as a sequence
1010
* @param nrec (optional) hint for how many other elements the table will have; its default is zero.
1111
*/
1212
function create<T>(nseq: number, nrec?: number): T[];
13-
}
13+
}

special/5.5.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
/// <reference path="./5.4.d.ts" />
22
/// <reference path="./5.5-plus.d.ts" />
3-

version-specific-functions/utf8-decode/utf8-offset-5.3-5.4.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ declare namespace utf8 {
2727
* This function assumes that s is a valid UTF-8 string.
2828
*/
2929
function offset(s: string, n?: number, i?: number): number;
30-
}
30+
}

version-specific-functions/utf8-decode/utf8-offset-5.5.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
*/
1515
declare namespace utf8 {
1616
/**
17-
* Returns the position of the n-th character of s (counting from byte
18-
* position i) as two integers: The index (in bytes) where its encoding
17+
* Returns the position of the n-th character of s (counting from byte
18+
* position i) as two integers: The index (in bytes) where its encoding
1919
* starts and the index (in bytes) where it ends.
2020
*
21-
* If the specified character is right after the end of s, the function
22-
* behaves as if there was a '\0' there. If the specified character is
21+
* If the specified character is right after the end of s, the function
22+
* behaves as if there was a '\0' there. If the specified character is
2323
* neither in the subject nor right after its end, the function returns fail.
2424
*
25-
* A negative n gets characters before position i. The default for i is 1
26-
* when n is non-negative and #s + 1 otherwise, so that utf8.offset(s,-n)
25+
* A negative n gets characters before position i. The default for i is 1
26+
* when n is non-negative and #s + 1 otherwise, so that utf8.offset(s,-n)
2727
* gets the offset of the n-th character from the end of the string.
2828
*
2929
* As a special case, when n is 0 the function returns the start of the
@@ -32,4 +32,4 @@ declare namespace utf8 {
3232
* This function assumes that s is a valid UTF-8 string.
3333
*/
3434
function offset(s: string, n?: number, i?: number): LuaMultiReturn<[number, number]>;
35-
}
35+
}

0 commit comments

Comments
 (0)