@@ -76,9 +76,9 @@ impl LocalTime<well_known::Rfc3339> {
76
76
/// ```
77
77
/// use tracing_subscriber::fmt::{self, time};
78
78
///
79
- /// let collector = tracing_subscriber::fmt()
79
+ /// let subscriber = tracing_subscriber::fmt()
80
80
/// .with_timer(time::LocalTime::rfc_3339());
81
- /// # drop(collector );
81
+ /// # drop(subscriber );
82
82
/// ```
83
83
///
84
84
/// [local time]: time::OffsetDateTime::now_local
@@ -130,9 +130,9 @@ impl<F: Formattable> LocalTime<F> {
130
130
/// use time::macros::format_description;
131
131
///
132
132
/// let timer = LocalTime::new(format_description!("[hour]:[minute]:[second]"));
133
- /// let collector = tracing_subscriber::fmt()
133
+ /// let subscriber = tracing_subscriber::fmt()
134
134
/// .with_timer(timer);
135
- /// # drop(collector );
135
+ /// # drop(subscriber );
136
136
/// ```
137
137
///
138
138
/// Using [`time::format_description::parse`]:
@@ -143,9 +143,9 @@ impl<F: Formattable> LocalTime<F> {
143
143
/// let time_format = time::format_description::parse("[hour]:[minute]:[second]")
144
144
/// .expect("format string should be valid!");
145
145
/// let timer = LocalTime::new(time_format);
146
- /// let collector = tracing_subscriber::fmt()
146
+ /// let subscriber = tracing_subscriber::fmt()
147
147
/// .with_timer(timer);
148
- /// # drop(collector );
148
+ /// # drop(subscriber );
149
149
/// ```
150
150
///
151
151
/// Using the [`format_description!`] macro requires enabling the `time`
@@ -158,9 +158,9 @@ impl<F: Formattable> LocalTime<F> {
158
158
/// use tracing_subscriber::fmt::{self, time::LocalTime};
159
159
///
160
160
/// let timer = LocalTime::new(time::format_description::well_known::Rfc3339);
161
- /// let collector = tracing_subscriber::fmt()
161
+ /// let subscriber = tracing_subscriber::fmt()
162
162
/// .with_timer(timer);
163
- /// # drop(collector );
163
+ /// # drop(subscriber );
164
164
/// ```
165
165
///
166
166
/// [local time]: time::OffsetDateTime::now_local()
@@ -207,9 +207,9 @@ impl UtcTime<well_known::Rfc3339> {
207
207
/// ```
208
208
/// use tracing_subscriber::fmt::{self, time};
209
209
///
210
- /// let collector = tracing_subscriber::fmt()
210
+ /// let subscriber = tracing_subscriber::fmt()
211
211
/// .with_timer(time::UtcTime::rfc_3339());
212
- /// # drop(collector );
212
+ /// # drop(subscriber );
213
213
/// ```
214
214
///
215
215
/// [local time]: time::OffsetDateTime::now_utc
@@ -247,9 +247,9 @@ impl<F: Formattable> UtcTime<F> {
247
247
/// use time::macros::format_description;
248
248
///
249
249
/// let timer = UtcTime::new(format_description!("[hour]:[minute]:[second]"));
250
- /// let collector = tracing_subscriber::fmt()
250
+ /// let subscriber = tracing_subscriber::fmt()
251
251
/// .with_timer(timer);
252
- /// # drop(collector );
252
+ /// # drop(subscriber );
253
253
/// ```
254
254
///
255
255
/// Using the [`format_description!`] macro requires enabling the `time`
@@ -263,9 +263,9 @@ impl<F: Formattable> UtcTime<F> {
263
263
/// let time_format = time::format_description::parse("[hour]:[minute]:[second]")
264
264
/// .expect("format string should be valid!");
265
265
/// let timer = UtcTime::new(time_format);
266
- /// let collector = tracing_subscriber::fmt()
266
+ /// let subscriber = tracing_subscriber::fmt()
267
267
/// .with_timer(timer);
268
- /// # drop(collector );
268
+ /// # drop(subscriber );
269
269
/// ```
270
270
///
271
271
/// Using a [well-known format][well-known formats] (this is equivalent to
@@ -275,9 +275,9 @@ impl<F: Formattable> UtcTime<F> {
275
275
/// use tracing_subscriber::fmt::{self, time::UtcTime};
276
276
///
277
277
/// let timer = UtcTime::new(time::format_description::well_known::Rfc3339);
278
- /// let collector = tracing_subscriber::fmt()
278
+ /// let subscriber = tracing_subscriber::fmt()
279
279
/// .with_timer(timer);
280
- /// # drop(collector );
280
+ /// # drop(subscriber );
281
281
/// ```
282
282
///
283
283
/// [UTC time]: time::OffsetDateTime::now_utc()
@@ -326,9 +326,9 @@ impl OffsetTime<well_known::Rfc3339> {
326
326
/// ```
327
327
/// use tracing_subscriber::fmt::{self, time};
328
328
///
329
- /// let collector = tracing_subscriber::fmt()
329
+ /// let subscriber = tracing_subscriber::fmt()
330
330
/// .with_timer(time::OffsetTime::local_rfc_3339().expect("could not get local offset!"));
331
- /// # drop(collector );
331
+ /// # drop(subscriber );
332
332
/// ```
333
333
///
334
334
/// Using `OffsetTime` with Tokio:
@@ -398,9 +398,9 @@ impl<F: time::formatting::Formattable> OffsetTime<F> {
398
398
///
399
399
/// let offset = UtcOffset::current_local_offset().expect("should get local offset!");
400
400
/// let timer = OffsetTime::new(offset, format_description!("[hour]:[minute]:[second]"));
401
- /// let collector = tracing_subscriber::fmt()
401
+ /// let subscriber = tracing_subscriber::fmt()
402
402
/// .with_timer(timer);
403
- /// # drop(collector );
403
+ /// # drop(subscriber );
404
404
/// ```
405
405
///
406
406
/// Using [`time::format_description::parse`]:
@@ -413,9 +413,9 @@ impl<F: time::formatting::Formattable> OffsetTime<F> {
413
413
/// let time_format = time::format_description::parse("[hour]:[minute]:[second]")
414
414
/// .expect("format string should be valid!");
415
415
/// let timer = OffsetTime::new(offset, time_format);
416
- /// let collector = tracing_subscriber::fmt()
416
+ /// let subscriber = tracing_subscriber::fmt()
417
417
/// .with_timer(timer);
418
- /// # drop(collector );
418
+ /// # drop(subscriber );
419
419
/// ```
420
420
///
421
421
/// Using the [`format_description!`] macro requires enabling the `time`
@@ -430,9 +430,9 @@ impl<F: time::formatting::Formattable> OffsetTime<F> {
430
430
///
431
431
/// let offset = UtcOffset::current_local_offset().expect("should get local offset!");
432
432
/// let timer = OffsetTime::new(offset, time::format_description::well_known::Rfc3339);
433
- /// let collector = tracing_subscriber::fmt()
433
+ /// let subscriber = tracing_subscriber::fmt()
434
434
/// .with_timer(timer);
435
- /// # drop(collector );
435
+ /// # drop(subscriber );
436
436
/// ```
437
437
///
438
438
/// [`time` crate]: time
0 commit comments