aboutsummaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/number/index.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/number/index.ts b/src/modules/number/index.ts
index cef0b27c..62036ab1 100644
--- a/src/modules/number/index.ts
+++ b/src/modules/number/index.ts
@@ -117,12 +117,12 @@ export class NumberModule {
*
* @param options Maximum value or options object. Defaults to `{}`.
* @param options.min Lower bound for generated number. Defaults to `0`.
- * @param options.max Upper bound for generated number. Defaults to `min + 16`.
+ * @param options.max Upper bound for generated number. Defaults to `15`.
*
* @example
* faker.number.hex() // 'b'
- * faker.number.hex(16) // '9'
- * faker.number.hex({ min: 0, max: 65536 }) // 'af17'
+ * faker.number.hex(255) // '9d'
+ * faker.number.hex({ min: 0, max: 65535 }) // 'af17'
*
* @since 8.0.0
*/
@@ -131,7 +131,7 @@ export class NumberModule {
options = { max: options };
}
- const { min = 0, max = min + 16 } = options;
+ const { min = 0, max = 15 } = options;
return this.int({
max,