Refactor: Top langs card: Fix return statement in helpers functions docstrings (#2996)

This commit is contained in:
Alexandr Garbuzov 2023-07-26 22:26:52 +03:00 committed by GitHub
parent a70799b695
commit b2917beabf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ const getLongestLang = (arr) =>
* Convert degrees to radians.
*
* @param {number} angleInDegrees Angle in degrees.
* @returns Angle in radians.
* @returns {number} Angle in radians.
*/
const degreesToRadians = (angleInDegrees) => angleInDegrees * (Math.PI / 180.0);
@ -54,7 +54,7 @@ const degreesToRadians = (angleInDegrees) => angleInDegrees * (Math.PI / 180.0);
* Convert radians to degrees.
*
* @param {number} angleInRadians Angle in radians.
* @returns Angle in degrees.
* @returns {number} Angle in degrees.
*/
const radiansToDegrees = (angleInRadians) => angleInRadians / (Math.PI / 180.0);