Skip to content

Commit 004128c

Browse files
committed
Cleanup: Add closing backticks in deprecated messages
1 parent 64b3d14 commit 004128c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

components/calendar/src/cal/east_asian_traditional.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ impl KoreanTraditional {
403403
/// Use [`Self::new`].
404404
#[cfg(feature = "serde")]
405405
#[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER,Self::new)]
406-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
406+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
407407
pub fn try_new_with_buffer_provider(
408408
_provider: &(impl BufferProvider + ?Sized),
409409
) -> Result<Self, DataError> {
@@ -412,13 +412,13 @@ impl KoreanTraditional {
412412

413413
/// Use [`Self::new`].
414414
#[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new)]
415-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
415+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
416416
pub fn try_new_unstable<D: ?Sized>(_provider: &D) -> Result<Self, DataError> {
417417
Ok(Self::new())
418418
}
419419

420420
/// Use [`Self::new`].
421-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
421+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
422422
pub fn new_always_calculating() -> Self {
423423
Self::new()
424424
}
@@ -550,21 +550,21 @@ impl ChineseTraditional {
550550

551551
#[cfg(feature = "serde")]
552552
#[doc = icu_provider::gen_buffer_unstable_docs!(BUFFER,Self::new)]
553-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
553+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
554554
pub fn try_new_with_buffer_provider(
555555
_provider: &(impl BufferProvider + ?Sized),
556556
) -> Result<Self, DataError> {
557557
Ok(Self::new())
558558
}
559559

560560
#[doc = icu_provider::gen_buffer_unstable_docs!(UNSTABLE, Self::new)]
561-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
561+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
562562
pub fn try_new_unstable<D: ?Sized>(_provider: &D) -> Result<Self, DataError> {
563563
Ok(Self::new())
564564
}
565565

566566
/// Use [`Self::new()`].
567-
#[deprecated(since = "2.1.0", note = "use `Self::new()")]
567+
#[deprecated(since = "2.1.0", note = "use `Self::new()`")]
568568
pub fn new_always_calculating() -> Self {
569569
Self::new()
570570
}

components/calendar/src/cal/hijri.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,15 +1070,15 @@ impl<A: AsCalendar<Calendar = Hijri<R>>, R: Rules> Date<A> {
10701070

10711071
impl Date<Hijri<UmmAlQura>> {
10721072
/// Deprecated
1073-
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar")]
1073+
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar`")]
10741074
pub fn try_new_ummalqura(year: i32, month: u8, day: u8) -> Result<Self, RangeError> {
10751075
Date::try_new_hijri_with_calendar(year, month, day, Hijri::new_umm_al_qura())
10761076
}
10771077
}
10781078

10791079
impl<A: AsCalendar<Calendar = Hijri<TabularAlgorithm>>> Date<A> {
10801080
/// Deprecated
1081-
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar")]
1081+
#[deprecated(since = "2.1.0", note = "use `Date::try_new_hijri_with_calendar`")]
10821082
pub fn try_new_hijri_tabular_with_calendar(
10831083
year: i32,
10841084
month: u8,

components/calendar/src/date.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,14 @@ impl<A: AsCalendar> Date<A> {
271271

272272
/// Construct a [`Date`] from an ISO date and a calendar.
273273
#[inline]
274-
#[deprecated(since = "2.2.0", note = "use `iso.to_calendar(calendar)")]
274+
#[deprecated(since = "2.2.0", note = "use `iso.to_calendar(calendar)`")]
275275
pub fn new_from_iso(iso: Date<Iso>, calendar: A) -> Self {
276276
iso.to_calendar(calendar)
277277
}
278278

279279
/// Convert the [`Date`] to an ISO Date
280280
#[inline]
281-
#[deprecated(since = "2.2.0", note = "use `date.to_calendar(Iso)")]
281+
#[deprecated(since = "2.2.0", note = "use `date.to_calendar(Iso)`")]
282282
pub fn to_iso(&self) -> Date<Iso> {
283283
self.to_calendar(Iso)
284284
}
@@ -320,7 +320,7 @@ impl<A: AsCalendar> Date<A> {
320320
///
321321
/// This is *not* the day of the week, an ordinal number that is locale
322322
/// dependent.
323-
#[deprecated(since = "2.2.0", note = "use `Date::weekday")]
323+
#[deprecated(since = "2.2.0", note = "use `Date::weekday`")]
324324
pub fn day_of_week(&self) -> types::Weekday {
325325
self.to_rata_die().into()
326326
}

components/calendar/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ pub struct MonthInfo {
676676
pub(crate) leap_status: LeapStatus,
677677

678678
/// The [`Month::code()`] of [`Self::to_input`].
679-
#[deprecated(since = "2.2.0", note = "use `to_input().code()")]
679+
#[deprecated(since = "2.2.0", note = "use `to_input().code()`")]
680680
pub standard_code: MonthCode,
681681

682682
/// Deprecated

0 commit comments

Comments
 (0)