diff options
| author | Noa <coolreader18@gmail.com> | 2025-04-17 11:42:53 -0500 |
|---|---|---|
| committer | Noa <coolreader18@gmail.com> | 2025-04-17 11:57:28 -0500 |
| commit | 34573d683f604ce4d1ab9a845c5a8be4a587a91d (patch) | |
| tree | 5fcb8d06dd77ce105d307e642007fc1271972258 | |
| parent | 88bd1913f2804c9204b72f60b61aad4449d832c3 (diff) | |
| download | rust-34573d683f604ce4d1ab9a845c5a8be4a587a91d.tar.gz rust-34573d683f604ce4d1ab9a845c5a8be4a587a91d.zip | |
Be more specific about the error in the SystemTime example
| -rw-r--r-- | library/std/src/time.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/time.rs b/library/std/src/time.rs index 6e28596e79b..03af35e809c 100644 --- a/library/std/src/time.rs +++ b/library/std/src/time.rs @@ -205,8 +205,8 @@ pub struct Instant(time::Instant); /// println!("{}", elapsed.as_secs()); /// } /// Err(e) => { -/// // an error occurred! -/// println!("Error: {e:?}"); +/// // the system clock went backwards! +/// println!("Great Scott! {e:?}"); /// } /// } /// } |
