Skip to content

Commit 5358a19

Browse files
issammanibendk
authored andcommitted
fix: typo
1 parent a85217d commit 5358a19

File tree

1 file changed

+2
-2
lines changed
  • components/context_id/src

1 file changed

+2
-2
lines changed

components/context_id/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl ContextIDComponentInner {
114114
// We generated a new context ID then we need a fresh timestamp and no rotation needed
115115
(true, _) => (now, true, false),
116116
// Pre-existing context ID with a positive timestamp:
117-
// try parsing it (any real UNIX-epoch timestamp is orders of magnitude within chrono’s 262 000-year range),
117+
// try parsing it (any real UNIX-epoch timestamp is orders of magnitude within chrono’s 262_000-year range),
118118
// and if it’s somehow out-of-range fall back to `now` and force rotation
119119
// See: https://docs.rs/chrono/latest/chrono/naive/struct.NaiveDateTime.html#panics
120120
(false, secs) if secs > 0 => DateTime::<Utc>::from_timestamp(secs, 0)
@@ -458,7 +458,7 @@ mod tests {
458458
fn test_context_id_with_out_of_range_creation_date() {
459459
with_test_mars(|mars, delete_called| {
460460
let spy = SpyCallback::new();
461-
// Way beyond chrono’s 262.000 syear range
461+
// Way beyond chrono’s 262_000-year range
462462
let huge_secs = i64::MAX;
463463
let component = ContextIDComponentInner::new(
464464
TEST_CONTEXT_ID,

0 commit comments

Comments
 (0)