From ce4c185ef11cec017112deb062853720eb997444 Mon Sep 17 00:00:00 2001 From: David Peter Date: Fri, 2 Aug 2024 22:17:04 +0200 Subject: [PATCH] doc: minor correction: "printf"-style API --- src/civil/date.rs | 6 +++--- src/civil/datetime.rs | 6 +++--- src/civil/time.rs | 6 +++--- src/fmt/strtime/mod.rs | 2 +- src/timestamp.rs | 6 +++--- src/zoned.rs | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/civil/date.rs b/src/civil/date.rs index ed63536..f1b8590 100644 --- a/src/civil/date.rs +++ b/src/civil/date.rs @@ -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. @@ -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. diff --git a/src/civil/datetime.rs b/src/civil/datetime.rs index 44d19bb..c764572 100644 --- a/src/civil/datetime.rs +++ b/src/civil/datetime.rs @@ -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. @@ -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. diff --git a/src/civil/time.rs b/src/civil/time.rs index 7462f56..5e5025b 100644 --- a/src/civil/time.rs +++ b/src/civil/time.rs @@ -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. @@ -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. diff --git a/src/fmt/strtime/mod.rs b/src/fmt/strtime/mod.rs index 257566b..009c786 100644 --- a/src/fmt/strtime/mod.rs +++ b/src/fmt/strtime/mod.rs @@ -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 diff --git a/src/timestamp.rs b/src/timestamp.rs index 3c6412f..a0dbb69 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -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. @@ -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. diff --git a/src/zoned.rs b/src/zoned.rs index d71a26f..2434a3a 100644 --- a/src/zoned.rs +++ b/src/zoned.rs @@ -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. @@ -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.