Skip to content

Commit aeee820

Browse files
committed
Fix documentation links
1 parent 40f0185 commit aeee820

File tree

6 files changed

+9
-12
lines changed

6 files changed

+9
-12
lines changed

src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#![doc(html_logo_url = "https://maneatingape.github.io/advent-of-code-rust/logo.png")]
2-
#![allow(rustdoc::private_intra_doc_links)]
3-
41
//! # Rust solutions to the annual Advent of Code challenge tuned for speed.
52
//!
63
//! [GitHub Repo](https://github.com/maneatingape/advent-of-code-rust)
74
5+
// Configure rustdoc
6+
#![doc(html_logo_url = "https://maneatingape.github.io/advent-of-code-rust/logo.png")]
7+
#![allow(rustdoc::private_intra_doc_links)]
8+
89
/// # Utility modules to handle common recurring Advent of Code patterns.
910
pub mod util {
1011
pub mod grid;

src/util/parse.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//! reason for the separate methods is that some AoC inputs contains the `-` character as a
1111
//! delimeter and this would cause numbers to be incorrectly parsed as negative.
1212
//!
13-
//! [`iter_unsigned`]: ParseUnsigned::iter_unsigned
14-
//! [`iter_signed`]: ParseSigned::iter_signed
13+
//! [`iter_unsigned`]: ParseOps::iter_unsigned
14+
//! [`iter_signed`]: ParseOps::iter_signed
1515
use std::marker::PhantomData;
1616
use std::ops::{Add, Neg, Shl};
1717
use std::str::Bytes;

src/year2022/day01.rs

-4
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
//! Since we don't care what order the highest values are returned in [`select_nth_unstable`] would
55
//! also work, and in theory is a little faster, however the difference was negligible when benchmarking.
66
//!
7-
//! Notes:
8-
//! * [`from`] is a convenience wrapper around [`parse`] that unwraps the number or panics if it can't be parsed.
9-
//!
107
//! [`select_nth_unstable`]: slice::select_nth_unstable
11-
//! [`parse`]: str::parse
128
use crate::util::parse::*;
139

1410
/// Parse and group lines.

src/year2022/day04.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Pairs = [u32; 4];
2727
/// * Extracting integers from redundant text is a very common theme in AoC that
2828
/// the [`iter_unsigned`] method handles.
2929
///
30-
/// [`iter_unsigned`]: ParseUnsigned::iter_unsigned
30+
/// [`iter_unsigned`]: ParseOps::iter_unsigned
3131
pub fn parse(input: &str) -> Vec<Pairs> {
3232
input.iter_unsigned().chunk::<4>().collect()
3333
}

src/year2022/day05.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type Input = (Stack, Vec<Move>);
2626
/// at the end of the `vec` which is a more natural location for mutation (as removing elements from
2727
/// the start of a `vec` involved moving all remaining elements).
2828
///
29-
/// [`iter_unsigned`]: ParseUnsigned::iter_unsigned
29+
/// [`iter_unsigned`]: ParseOps::iter_unsigned
3030
/// [`chunk`]: ChunkOps::chunk
3131
pub fn parse(input: &str) -> Input {
3232
let (prefix, suffix) = input.split_once("\n\n").unwrap();

src/year2022/day11.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! 8 % 5 = 3
3838
//! ```
3939
//!
40-
//! [`iter_unsigned`]: ParseUnsigned::iter_unsigned
40+
//! [`iter_unsigned`]: ParseOps::iter_unsigned
4141
use crate::util::parse::*;
4242

4343
#[derive(Clone)]

0 commit comments

Comments
 (0)