Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matsadler committed Jul 24, 2024
1 parent 6934b9f commit 1dfee20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ impl Time {
/// use magnus::{Error, Ruby, Time};
///
/// fn example(ruby: &Ruby) -> Result<(), Error> {
/// let t: Time = ruby.eval(r#"Time.new(2022, 5, 31, 9, 8, 123456789/1000000000r, "-07:00")"#)?;
/// let t: Time =
/// ruby.eval(r#"Time.new(2022, 5, 31, 9, 8, 123456789/1000000000r, "-07:00")"#)?;
///
/// assert_eq!(t.tv_nsec()?, 123456789);
///
Expand All @@ -193,7 +194,8 @@ impl Time {
/// use magnus::{Error, Ruby, Time};
///
/// fn example(ruby: &Ruby) -> Result<(), Error> {
/// let t: Time = ruby.eval(r#"Time.new(2022, 5, 31, 9, 8, 123456789/1000000000r, "-07:00")"#)?;
/// let t: Time =
/// ruby.eval(r#"Time.new(2022, 5, 31, 9, 8, 123456789/1000000000r, "-07:00")"#)?;
///
/// assert_eq!(t.tv_usec()?, 123456);
///
Expand Down

0 comments on commit 1dfee20

Please sign in to comment.