Skip to content

Commit 8bd34f6

Browse files
committed
Update docs and change message start to lowercase
1 parent fd97b5c commit 8bd34f6

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

lib/node_modules/@stdlib/stats/kstest/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function kstest() {
155155
stat = max( n, x, 1 );
156156
break;
157157
default:
158-
throw new Error( format( 'Invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
158+
throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
159159
}
160160
if ( alt === 'two-sided' ) {
161161
pval = 1.0 - pKolmogorov( stat, n );

lib/node_modules/@stdlib/stats/ttest2/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function ttest2( x, y, options ) {
128128
df = pow( stderr, 4 ) / v;
129129
}
130130
else {
131-
throw new Error( format( 'Invalid option. `variance` must be either `equal` or `unequal`. Value: `%s`.', vars ) );
131+
throw new Error( format( 'invalid option. `variance` must be either `equal` or `unequal`. Value: `%s`.', vars ) );
132132
}
133133

134134
xmean = mean( nx, x, 1 );
@@ -157,7 +157,7 @@ function ttest2( x, y, options ) {
157157
cint[ 1 ] = diff + (cint[ 1 ] * stderr);
158158
break;
159159
default:
160-
throw new Error( format( 'Invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
160+
throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
161161
}
162162
out = {};
163163
setReadOnly( out, 'rejected', pval <= alpha );

lib/node_modules/@stdlib/stats/vartest/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function vartest( x, y, options ) {
133133
];
134134
break;
135135
default:
136-
throw new Error( format( 'Invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
136+
throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
137137
}
138138
out = {};
139139
setReadOnly( out, 'rejected', pval <= alpha );

lib/node_modules/@stdlib/stats/ztest/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function ztest( x, sigma, options ) {
142142
cint[ 1 ] = mu + (cint[ 1 ] * stderr);
143143
break;
144144
default:
145-
throw new Error( format( 'Invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
145+
throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
146146
}
147147
out = {};
148148
setReadOnly( out, 'rejected', pval <= alpha );

lib/node_modules/@stdlib/stats/ztest2/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function ztest2( x, y, sigmax, sigmay, options ) {
140140
cint[ 1 ] = diff + (cint[ 1 ] * stderr);
141141
break;
142142
default:
143-
throw new Error( format( 'Invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
143+
throw new Error( format( 'invalid option. `alternative` must be either `two-sided`, `less`, or `greater`. Option: `%s`.', alt ) );
144144
}
145145
out = {};
146146
setReadOnly( out, 'rejected', pval <= alpha );

lib/node_modules/@stdlib/string/format/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ var out = format( str, 'world', 'Bob' );
4848

4949
The format string is a string literal containing zero or more conversion specifications, each of which results in a string value being inserted to the output string. A conversion specification consists of a percent sign (`%`) followed by one or more of the following flags, width, precision, and conversion type characters. It thus takes the following form:
5050

51-
%[flags][width][.precision]specifier
51+
```text
52+
%[flags][width][.precision]specifier
53+
```
5254

5355
Arguments following the format string are used to replace the placeholders in the format string. The number of arguments following the format string should be equal to the number of placeholders in the format string.
5456

@@ -60,7 +62,9 @@ var out = format( str, 'Hello', 'World' );
6062

6163
To supply arguments in a different order than they appear in the format string, positional placeholders as indicated by a `$` character in the format string are used. In this case, the conversion specification takes the form:
6264

63-
%[pos$][flags][width][.precision]specifier
65+
```text
66+
%[pos$][flags][width][.precision]specifier
67+
```
6468

6569
```javascript
6670
var str = '%3$s %2$s %1$s';
@@ -176,7 +180,7 @@ out = format( str, 5, 2 );
176180
The `precision` may be specified as a decimal integer or as an asterisk character (`*`), in which case the argument preceding the conversion specification is used as the precision value. The behavior of the `precision` differs depending on the conversion type:
177181

178182
- For `s` specifiers, the `precision` specifies the maximum number of characters to be written to the output.
179-
- For floating point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6).
183+
- For floating point specifiers (`f`, `F`, `e`, `E`), the `precision` specifies the number of digits after the decimal point to be written to the output (by default, this is `6`).
180184
- For `g` and `G` specifiers, the `precision` specifies the maximum number of significant digits to be written to the output.
181185
- For integer specifiers (`d`, `i`, `u`, `b`, `o`, `x`, `X`), the `precision` specifies the minimum number of digits to be written to the output. If the value to be written is shorter than this number, the result is padded with zeros on the left. The value is not truncated even if the result is longer. For
182186

0 commit comments

Comments
 (0)