fix: replace git.io links

This commit is contained in:
Felix Spöttel 2022-04-26 09:11:57 +02:00
parent fc9f90c9c2
commit 37b2027a99
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ Generated from [fspoettel/advent-of-code-rust](https://github.com/fspoettel/adve
Individual solutions live in the `./src/bin` directory as separate binaries.
Every [solution](https://git.io/JyXa8) has _unit tests_ referencing the _example_ file. Use these tests to develop and debug your solution. When editing a solution, `rust-analyzer` will display buttons for these actions above the unit tests.
Every [solution](https://github.com/fspoettel/advent-of-code-rust/blob/master/bin/scaffold#L21-L52) has _unit tests_ referencing the _example_ file. Use these tests to develop and debug your solution. When editing a solution, `rust-analyzer` will display buttons for these actions above the unit tests.
### Download inputs for a day

View File

@ -52,7 +52,7 @@ pub fn parse_exec_time(output: &str) -> f64 {
} else {
let timing = l.split("(elapsed: ").last().unwrap();
// use `contains` istd. of `ends_with`: string may contain ANSI escape sequences.
// possible time formats: see [rust/library/core/src/time.rs](https://git.io/Jy1rI).
// possible time formats: see [rust/library/core/src/time.rs](https://github.com/rust-lang/rust/blob/1.57.0/library/core/src/time.rs#L1225-L1249).
if timing.contains("ns)") {
acc // range below rounding precision.
} else if timing.contains("µs)") {
@ -72,7 +72,7 @@ pub fn parse_exec_time(output: &str) -> f64 {
mod tests {
use super::*;
/// copied from: [rust/library/std/src/macros.rs](https://git.io/Jy1r7)
/// copied from: [rust/library/std/src/macros.rs](https://github.com/rust-lang/rust/blob/1.57.0/library/std/src/macros.rs#L311-L316)
macro_rules! assert_approx_eq {
($a:expr, $b:expr) => {{
let (a, b) = (&$a, &$b);