Skip to content

Commit 842a20f

Browse files
committed
Fix bare URL in private docs
1 parent 9366572 commit 842a20f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

crates/year2016/src/day16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'a> Day16<'a> {
117117
output
118118
}
119119

120-
/// See https://www.reddit.com/r/adventofcode/comments/5ititq/2016_day_16_c_how_to_tame_your_dragon_in_under_a/
120+
/// See <https://www.reddit.com/r/adventofcode/comments/5ititq/2016_day_16_c_how_to_tame_your_dragon_in_under_a/>
121121
fn dragon_parity(n: u32) -> bool {
122122
let gray = n ^ (n >> 1);
123123
((n & gray).count_ones() ^ gray) & 1 != 0

lefthook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ pre-commit:
1313
run: cargo nextest run --all
1414
doctest:
1515
run: cargo test --doc --all
16+
docs:
17+
run: cargo doc --document-private-items
18+
env:
19+
RUSTDOCFLAGS: -Dwarnings

0 commit comments

Comments
 (0)