Skip to content

Commit

Permalink
doc: minor correction: "printf"-style API
Browse files Browse the repository at this point in the history
PR #71
  • Loading branch information
sharkdp authored Aug 2, 2024
1 parent 0b2d589 commit c1b1ca4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/civil/date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2075,11 +2075,11 @@ impl Date {
}
}

/// Parsing and formatting using a "printf" style of API.
/// Parsing and formatting using a "printf"-style API.
impl Date {
/// Parses a civil date in `input` matching the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to match components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down Expand Up @@ -2116,7 +2116,7 @@ impl Date {

/// Formats this civil date according to the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to format components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down
6 changes: 3 additions & 3 deletions src/civil/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2281,11 +2281,11 @@ impl DateTime {
}
}

/// Parsing and formatting using a "printf" style of API.
/// Parsing and formatting using a "printf"-style API.
impl DateTime {
/// Parses a civil datetime in `input` matching the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to match components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down Expand Up @@ -2321,7 +2321,7 @@ impl DateTime {

/// Formats this civil datetime according to the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to format components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down
6 changes: 3 additions & 3 deletions src/civil/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1491,11 +1491,11 @@ impl Time {
}
}

/// Parsing and formatting using a "printf" style of API.
/// Parsing and formatting using a "printf"-style API.
impl Time {
/// Parses a civil time in `input` matching the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to match components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down Expand Up @@ -1532,7 +1532,7 @@ impl Time {

/// Formats this civil time according to the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to format components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down
2 changes: 1 addition & 1 deletion src/fmt/strtime/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Support for "printf" style parsing and formatting.
Support for "printf"-style parsing and formatting.
While the routines exposed in this module very closely resemble the
corresponding [`strptime`] and [`strftime`] POSIX functions, it is not a goal
Expand Down
6 changes: 3 additions & 3 deletions src/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1908,12 +1908,12 @@ impl Timestamp {
}
}

/// Parsing and formatting using a "printf" style of API.
/// Parsing and formatting using a "printf"-style API.
impl Timestamp {
/// Parses a timestamp (expressed as broken down time) in `input` matching
/// the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to match components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down Expand Up @@ -1951,7 +1951,7 @@ impl Timestamp {

/// Formats this timestamp according to the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to format components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down
6 changes: 3 additions & 3 deletions src/zoned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3081,11 +3081,11 @@ impl Zoned {
}
}

/// Parsing and formatting using a "printf" style of API.
/// Parsing and formatting using a "printf"-style API.
impl Zoned {
/// Parses a zoned datetime in `input` matching the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to match components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down Expand Up @@ -3143,7 +3143,7 @@ impl Zoned {

/// Formats this zoned datetime according to the given `format`.
///
/// The format string uses a "printf" style of API where conversion
/// The format string uses a "printf"-style API where conversion
/// specifiers can be used as place holders to format components of
/// a datetime. For details on the specifiers supported, see the
/// [`fmt::strtime`] module documentation.
Expand Down

0 comments on commit c1b1ca4

Please sign in to comment.