Skip to content

Commit d3cb95d

Browse files
committed
Fix lint errors
1 parent 2cd718c commit d3cb95d

File tree

4 files changed

+47
-47
lines changed

4 files changed

+47
-47
lines changed

lib/node_modules/@stdlib/random/base/geometric/lib/_geometric.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ var ln = require( '@stdlib/math/base/special/ln' );
1515
*
1616
* Consider
1717
*
18-
* ``` tex
18+
* ```tex
1919
* N = \left \lfloor \ln (U) / \ln (1-p) \right \rfloor
2020
* ```
2121
*
2222
* where \\( U \\) is uniform on the interval \\((0,1)\\). Accordingly, \\(N\\) must be a nonnegative integer, and, for every \\( n \geq 0\\), the event \\(A_n = \left \{ N = n \right \}\\) is
2323
*
24-
* ``` tex
24+
* ```tex
2525
* A_n = \left \{(n+1) \ln (1-p) < \ln (U) \leq n \ln (1-p) \right \}
2626
* ```
2727
*
2828
* where \\(\ln (1-p) < 0\\). Thus,
2929
*
30-
* ``` tex
30+
* ```tex
3131
* A_n = \left \{(1-p)^{n+1} < U \leq (1-p)^n \right \}
3232
* ```
3333
*
3434
* For every \\(u < v\\) on the interval \\((0,1)\\),
3535
*
36-
* ``` tex
36+
* ```tex
3737
* P\left \[u < U \leq v\right \] = v - u
3838
* ```
3939
*
4040
* Hence,
4141
*
42-
* ``` tex
42+
* ```tex
4343
* P\left \[N = n \right \] = P\left \[A_n\right \] = (1-p)^n - (1-p)^{n+1} = (1-p)^n(1-(1-p)) = p(1-p)^n
4444
* ```
4545
*

lib/node_modules/@stdlib/random/base/minstd/lib/minstd.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var randint32 = require( './rand_int32.js' );
1515
*
1616
* Linear congruential generators (LCGs) use the recurrence relation
1717
*
18-
* ``` tex
18+
* ```tex
1919
* X_{n+1} = ( a \cdot X_n + c ) \operatorname{mod}(m)
2020
* ```
2121
*
@@ -29,7 +29,7 @@ var randint32 = require( './rand_int32.js' );
2929
*
3030
* In this implementation, the constants \\( a \\), \\( c \\), and \\( m \\) have the values
3131
*
32-
* ``` tex
32+
* ```tex
3333
* \begin{align*}
3434
* a &= 7^5 = 16807 \\
3535
* c &= 0 \\
@@ -51,7 +51,7 @@ var randint32 = require( './rand_int32.js' );
5151
*
5252
* Accordingly, the maximum possible product is
5353
*
54-
* ``` tex
54+
* ```tex
5555
* 16807 \cdot (m - 1) \approx 2^{46}
5656
* ```
5757
*

lib/node_modules/@stdlib/string/utf16-to-utf8-array/lib/main.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,39 +45,39 @@ var Ox10000 = 65536|0;
4545
*
4646
* ## Method
4747
*
48-
* * UTF-8 is defined to encode code points in one to four bytes, depending on the number of significant bits in the numerical value of the code point.
48+
* - UTF-8 is defined to encode code points in one to four bytes, depending on the number of significant bits in the numerical value of the code point.
4949
*
50-
* * UTF-16 encoding uses one 16-bit unit for non-surrogates (U+0000 to U+D7FF and U+E000 to U+FFFF).
50+
* - UTF-16 encoding uses one 16-bit unit for non-surrogates (U+0000 to U+D7FF and U+E000 to U+FFFF).
5151
*
52-
* * UTF-16 encoding uses two 16-bit units (surrogate pairs) for U+10000 to U+10FFFF and encodes U+10000-U+10FFFF by subtracting 0x10000 from the code point, expressing the result as a 20-bit binary, and splitting the 20 bits of 0x0-0xFFFFF as upper and lower 10-bits. The respective 10-bits are stored in two 16-bit words.
52+
* - UTF-16 encoding uses two 16-bit units (surrogate pairs) for U+10000 to U+10FFFF and encodes U+10000-U+10FFFF by subtracting 0x10000 from the code point, expressing the result as a 20-bit binary, and splitting the 20 bits of 0x0-0xFFFFF as upper and lower 10-bits. The respective 10-bits are stored in two 16-bit words.
5353
*
54-
* * Let `N` be the number of significant bits.
54+
* - Let `N` be the number of significant bits.
5555
*
56-
* * If `N <= 7` (i.e., U+0000 to U+007F), a code point is encoded in a single byte.
56+
* - If `N <= 7` (i.e., U+0000 to U+007F), a code point is encoded in a single byte.
5757
*
58-
* ``` text
59-
* 0xxxxxxx
60-
* ```
58+
* ```text
59+
* 0xxxxxxx
60+
* ```
6161
*
62-
* where an `x` refers to a code point bit.
62+
* where an `x` refers to a code point bit.
6363
*
64-
* * If `N <= 11` (i.e., U+0080 to U+07FF; ASCII characters), a code point is encoded in two bytes (5+6 bits).
64+
* - If `N <= 11` (i.e., U+0080 to U+07FF; ASCII characters), a code point is encoded in two bytes (5+6 bits).
6565
*
66-
* ``` text
67-
* 110xxxxx 10xxxxxx
68-
* ```
66+
* ```text
67+
* 110xxxxx 10xxxxxx
68+
* ```
6969
*
70-
* * If `N <= 16` (i.e., U+0800 to U+FFFF), a code point is encoded in three bytes (4+6+6 bits).
70+
* - If `N <= 16` (i.e., U+0800 to U+FFFF), a code point is encoded in three bytes (4+6+6 bits).
7171
*
72-
* ``` text
73-
* 1110xxxx 10xxxxxx 10xxxxxx
74-
* ```
72+
* ```text
73+
* 1110xxxx 10xxxxxx 10xxxxxx
74+
* ```
7575
*
76-
* * If `N <= 21` (i.e., U+10000 to U+10FFFF), a code point is encoded in four bytes (3+6+6+6 bits).
76+
* - If `N <= 21` (i.e., U+10000 to U+10FFFF), a code point is encoded in four bytes (3+6+6+6 bits).
7777
*
78-
* ``` text
79-
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
80-
* ```
78+
* ```text
79+
* 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
80+
* ```
8181
*
8282
*
8383
* @param {string} str - string to convert

lib/node_modules/@stdlib/string/utf16-to-utf8-array/test/test.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tape( 'the function converts a UTF-16 encoded string to an array of integers usi
6666
*
6767
* To convert U+10437 to a UTF-8 array, pack the bit sequence (more specifically, the last 21 bits) into 4 bytes using UTF-8 encoding.
6868
*
69-
* ``` text
69+
* ```text
7070
* 00000000 000 00001 00000100 00110111
7171
*
7272
* 00001 00000100 00110111
@@ -78,30 +78,30 @@ tape( 'the function converts a UTF-16 encoded string to an array of integers usi
7878
*
7979
* To determine the surrogate pair,
8080
*
81-
* * Subtract 0x10000.
81+
* - Subtract 0x10000.
8282
*
83-
* ``` text
84-
* 0x10437 - 0x10000 = 0x00437 => 0000 0000 0100 0011 0111
85-
* ```
83+
* ```text
84+
* 0x10437 - 0x10000 = 0x00437 => 0000 0000 0100 0011 0111
85+
* ```
8686
*
87-
* * Split into high and low 10-bits.
87+
* - Split into high and low 10-bits.
8888
*
89-
* ``` text
90-
* 0000 0000 01
91-
* 00 0011 0111
92-
* ```
89+
* ```text
90+
* 0000 0000 01
91+
* 00 0011 0111
92+
* ```
9393
*
94-
* * Add 0xD800 to high 10-bits to get high surrogate.
94+
* - Add 0xD800 to high 10-bits to get high surrogate.
9595
*
96-
* ``` text
97-
* 0xD800 + 0x0001 = 0xD801 => 1101100000000001
98-
* ```
96+
* ```text
97+
* 0xD800 + 0x0001 = 0xD801 => 1101100000000001
98+
* ```
9999
*
100-
* * Add 0xDC00 to low 10-bits to get low surrogate.
100+
* - Add 0xDC00 to low 10-bits to get low surrogate.
101101
*
102-
* ``` text
103-
* 0xDC00 + 0x0037 = 0xDC37 => 1101110000110111
104-
* ```
102+
* ```text
103+
* 0xDC00 + 0x0037 = 0xDC37 => 1101110000110111
104+
* ```
105105
*/
106106

107107
expected = [

0 commit comments

Comments
 (0)