From 46bc39a290de903152bdb1ba13fdc4cc82e40874 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:44:05 +0200 Subject: [PATCH] chore: typos --- proto/src/time.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proto/src/time.rs b/proto/src/time.rs index 01afd5c..d832311 100644 --- a/proto/src/time.rs +++ b/proto/src/time.rs @@ -2,13 +2,13 @@ use crate::google::protobuf::Timestamp; pub trait ToMillis { - /// Convert protobuf timestamp into miliseconds since epoch + /// Convert protobuf timestamp into milliseconds since epoch /// Note there is a resolution difference, as timestamp uses nanoseconds /// /// # Arguments /// - /// * millis - time since epoch, in miliseconds + /// * millis - time since epoch, in milliseconds /// /// # Panics /// @@ -22,7 +22,7 @@ pub trait ToMillis { } impl ToMillis for Timestamp { - /// Convert protobuf timestamp into miliseconds since epoch + /// Convert protobuf timestamp into milliseconds since epoch fn to_millis(&self) -> u64 { chrono::DateTime::from_timestamp(self.seconds, self.nanos as u32) .unwrap() @@ -34,13 +34,13 @@ impl ToMillis for Timestamp { } pub trait FromMillis { - /// Create protobuf timestamp from miliseconds since epoch + /// Create protobuf timestamp from milliseconds since epoch /// /// Note there is a resolution difference, as timestamp uses nanoseconds /// /// # Arguments /// - /// * millis - time since epoch, in miliseconds; must fit `i64` type + /// * millis - time since epoch, in milliseconds; must fit `i64` type fn from_millis(millis: u64) -> Self; #[deprecated = "use `from_millis` instead"] @@ -53,7 +53,7 @@ pub trait FromMillis { } impl FromMillis for Timestamp { - /// Create protobuf timestamp from miliseconds since epoch + /// Create protobuf timestamp from milliseconds since epoch /// /// Note there is a resolution difference, as timestamp uses nanoseconds ///