Commit 96ec18bd authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'typo-unit-format-js-comments' into 'master'

Fix typos in comments of lib/utils/unit_format/index.js

See merge request gitlab-org/gitlab!44187
parents fc5ec643 8b4ea8d2
...@@ -61,8 +61,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => { ...@@ -61,8 +61,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => {
* @function * @function
* @param {Number} value - Number to format * @param {Number} value - Number to format
* @param {Number} fractionDigits - precision decimals * @param {Number} fractionDigits - precision decimals
* @param {Number} maxLength - Max lenght of formatted number * @param {Number} maxLength - Max length of formatted number
* if lenght is exceeded, exponential format is used. * if length is exceeded, exponential format is used.
*/ */
return numberFormatter(); return numberFormatter();
} }
...@@ -73,8 +73,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => { ...@@ -73,8 +73,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => {
* @function * @function
* @param {Number} value - Number to format, `1` is rendered as `100%` * @param {Number} value - Number to format, `1` is rendered as `100%`
* @param {Number} fractionDigits - number of precision decimals * @param {Number} fractionDigits - number of precision decimals
* @param {Number} maxLength - Max lenght of formatted number * @param {Number} maxLength - Max length of formatted number
* if lenght is exceeded, exponential format is used. * if length is exceeded, exponential format is used.
*/ */
return numberFormatter('percent'); return numberFormatter('percent');
} }
...@@ -85,8 +85,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => { ...@@ -85,8 +85,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => {
* @function * @function
* @param {Number} value - Number to format, `100` is rendered as `100%` * @param {Number} value - Number to format, `100` is rendered as `100%`
* @param {Number} fractionDigits - number of precision decimals * @param {Number} fractionDigits - number of precision decimals
* @param {Number} maxLength - Max lenght of formatted number * @param {Number} maxLength - Max length of formatted number
* if lenght is exceeded, exponential format is used. * if length is exceeded, exponential format is used.
*/ */
return numberFormatter('percent', 1 / 100); return numberFormatter('percent', 1 / 100);
} }
...@@ -100,8 +100,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => { ...@@ -100,8 +100,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => {
* @function * @function
* @param {Number} value - Number to format, `1` is rendered as `1s` * @param {Number} value - Number to format, `1` is rendered as `1s`
* @param {Number} fractionDigits - number of precision decimals * @param {Number} fractionDigits - number of precision decimals
* @param {Number} maxLength - Max lenght of formatted number * @param {Number} maxLength - Max length of formatted number
* if lenght is exceeded, exponential format is used. * if length is exceeded, exponential format is used.
*/ */
return suffixFormatter(s__('Units|s')); return suffixFormatter(s__('Units|s'));
} }
...@@ -112,8 +112,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => { ...@@ -112,8 +112,8 @@ export const getFormatter = (format = SUPPORTED_FORMATS.engineering) => {
* @function * @function
* @param {Number} value - Number to format, `1` is formatted as `1ms` * @param {Number} value - Number to format, `1` is formatted as `1ms`
* @param {Number} fractionDigits - number of precision decimals * @param {Number} fractionDigits - number of precision decimals
* @param {Number} maxLength - Max lenght of formatted number * @param {Number} maxLength - Max length of formatted number
* if lenght is exceeded, exponential format is used. * if length is exceeded, exponential format is used.
*/ */
return suffixFormatter(s__('Units|ms')); return suffixFormatter(s__('Units|ms'));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment