Skip to content

Commit c938248

Browse files
Apply suggestions from code review
Co-authored-by: Rich Harris <[email protected]>
1 parent e6ff92d commit c938248

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

documentation/docs/07-misc/02-testing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ test('Multiplier', () => {
5757
/// file: multiplier.js
5858
/**
5959
* @param {number} initial
60-
* @param {number} mult
60+
* @param {number} k
6161
*/
62-
export function multiplier(initial, mult) {
62+
export function multiplier(initial, k) {
6363
let count = initial;
6464

6565
return {
6666
get value() {
67-
return count * mult;
67+
return count * k;
6868
},
6969
/** @param {number} c */
7070
set: (c) => {
@@ -100,12 +100,12 @@ test('Multiplier', () => {
100100
/// file: multiplier.svelte.js
101101
/**
102102
* @param {() => number} getCount
103-
* @param {number} mult
103+
* @param {number} k
104104
*/
105-
export function multiplier(getCount, mult) {
105+
export function multiplier(getCount, k) {
106106
return {
107107
get value() {
108-
return getCount() * mult;
108+
return getCount() * k;
109109
}
110110
};
111111
}

0 commit comments

Comments
 (0)