Skip to content

Commit

Permalink
Improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Dec 19, 2024
1 parent af95e5f commit b66eed2
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 5 deletions.
10 changes: 8 additions & 2 deletions components/datetime/src/neo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,17 @@ define_preferences!(
[Copy]
DateTimeFormatterPreferences,
{
/// The user's preferred numbering system
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem,
/// The user's preferred hour cycle
/// The user's preferred hour cycle.
///
/// Corresponds to the `-u-hc` in Unicode Locale Identifier.
hour_cycle: HourCycle,
/// The user's preferred calendar system
///
/// Corresponds to the `-u-ca` in Unicode Locale Identifier.
calendar_algorithm: CalendarAlgorithm
}
);
Expand Down
4 changes: 3 additions & 1 deletion components/decimal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ define_preferences!(
[Copy]
FixedDecimalFormatterPreferences,
{
/// Numbering System. Corresponds to the `-u-nu` in Unicode Locale Identifier.
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
4 changes: 3 additions & 1 deletion components/experimental/src/compactdecimal/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ define_preferences!(
[Copy]
CompactDecimalFormatterPreferences,
{
/// The numbering system used for formatting.
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ define_preferences!(
[Copy]
CompactCurrencyFormatterPreferences,
{
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
3 changes: 3 additions & 0 deletions components/experimental/src/dimension/currency/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ define_preferences!(
[Copy]
CurrencyFormatterPreferences,
{
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
3 changes: 3 additions & 0 deletions components/experimental/src/dimension/percent/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ define_preferences!(
[Copy]
PercentFormatterPreferences,
{
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
3 changes: 3 additions & 0 deletions components/experimental/src/dimension/units/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ define_preferences!(
[Copy]
UnitsFormatterPreferences,
{
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down
2 changes: 1 addition & 1 deletion components/experimental/src/displaynames/displaynames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use icu_provider::prelude::*;
use potential_utf::PotentialUtf8;

define_preferences!(
/// The preferences for list formatting.
/// The preferences for display names.
[Copy]
DisplayNamesPreferences,
{}
Expand Down
3 changes: 3 additions & 0 deletions components/experimental/src/duration/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ define_preferences!(
[Copy]
DurationFormatterPreferences,
{
/// The user's preferred numbering system.
///
/// Corresponds to the `-u-nu` in Unicode Locale Identifier.
numbering_system: NumberingSystem
}
);
Expand Down

0 comments on commit b66eed2

Please sign in to comment.