Skip to content

Commit

Permalink
Added comments to the new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SgtApone117 committed Dec 2, 2024
1 parent ca5f849 commit 403a411
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/faker-cxx/science.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ struct FAKER_CXX_EXPORT ChemicalElement
/**
* @brief Returns a random chemical element from the periodic table.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Chemical element.
*
* @code
Expand All @@ -36,6 +38,8 @@ struct FAKER_CXX_EXPORT Unit
/**
* @brief Returns a unit of measurement for either distance, mass, time, temp, current.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Unit.
*
* @code
Expand All @@ -47,6 +51,8 @@ FAKER_CXX_EXPORT Unit unit(Locale locale = Locale::en_US);
/**
* @brief Returns a unit of measurement for either distance.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Distance unit.
*
* @code
Expand All @@ -59,6 +65,8 @@ FAKER_CXX_EXPORT Unit distanceUnit(Locale locale = Locale::en_US);
/**
* @brief Returns a unit of measurement for either time.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Time unit.
*
* @code
Expand All @@ -70,6 +78,8 @@ FAKER_CXX_EXPORT Unit timeUnit(Locale locale = Locale::en_US);
/**
* @brief Returns a unit of measurement for either mass.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Mass unit.
*
* @code
Expand All @@ -81,6 +91,8 @@ FAKER_CXX_EXPORT Unit massUnit(Locale locale = Locale::en_US);
/**
* @brief Returns a unit of measurement for either temp.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Temperture unit.
*
* @code
Expand All @@ -92,6 +104,8 @@ FAKER_CXX_EXPORT Unit tempUnit(Locale locale = Locale::en_US);
/**
* @brief Returns a unit of measurement for either current.
*
* @param locale The locale. Defaults to `Locale::en_US`.
*
* @returns Current unit.
*
* @code
Expand Down

0 comments on commit 403a411

Please sign in to comment.