Skip to content

Commit a5eefd9

Browse files
authoredAug 3, 2024··
Fix typos in relative_time.rb (#2988)
1 parent 82f0267 commit a5eefd9

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed
 

‎.changeset/wicked-poems-rhyme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/view-components": patch
3+
---
4+
5+
Fix documentation comments in relative_time.rb

‎app/components/primer/beta/relative_time.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class RelativeTime < Primer::Component
8686

8787
# @param datetime [Time] The time to be formatted.
8888
# @param tense [Symbol] Which tense to use. <%= one_of(Primer::Beta::RelativeTime::TENSE_OPTIONS) %>
89-
# @param prefix [sring] What to prefix the relative ime display with.
89+
# @param prefix [String] What to prefix the relative time display with.
9090
# @param second [Symbol] What format seconds should take. <%= one_of(Primer::Beta::RelativeTime::SECOND_OPTIONS) %>
9191
# @param minute [Symbol] What format minues should take. <%= one_of(Primer::Beta::RelativeTime::MINUTE_OPTIONS) %>
9292
# @param hour [Symbol] What format hours should take. <%= one_of(Primer::Beta::RelativeTime::HOUR_OPTIONS) %>
@@ -95,12 +95,12 @@ class RelativeTime < Primer::Component
9595
# @param month [Symbol] What format months should take. <%= one_of(Primer::Beta::RelativeTime::MONTH_OPTIONS) %>
9696
# @param year [Symbol] What format years should take. <%= one_of(Primer::Beta::RelativeTime::YEAR_OPTIONS) %>
9797
# @param time_zone_name [Symbol] What format the time zone should take. <%= one_of(Primer::Beta::RelativeTime::TIMEZONENAME_OPTIONS) %>
98-
# @param threshold [string] The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute.
98+
# @param threshold [String] The threshold, in ISO-8601 'durations' format, at which relative time displays become absolute.
9999
# @param precision [Symbol] The precision elapsed time should display. <%= one_of(Primer::Beta::RelativeTime::PRECISION_OPTIONS) %>
100100
# @param format [Symbol] The format the display should take. <%= one_of(Primer::Beta::RelativeTime::FORMAT_OPTIONS) %>
101101
# @param format_style [Symbol] The format the display should take. <%= one_of(Primer::Beta::RelativeTime::FORMAT_STYLE_OPTIONS) %>
102-
# @param lang [string] The language to use.
103-
# @param title [string] Provide a custom title to the element.
102+
# @param lang [String] The language to use.
103+
# @param title [String] Provide a custom title to the element.
104104
# @param no_title [Boolean] Removes the `title` attribute provided on the element by default.
105105
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
106106
def initialize(

0 commit comments

Comments
 (0)
Please sign in to comment.