We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9366572 commit 842a20fCopy full SHA for 842a20f
crates/year2016/src/day16.rs
@@ -117,7 +117,7 @@ impl<'a> Day16<'a> {
117
output
118
}
119
120
- /// See https://www.reddit.com/r/adventofcode/comments/5ititq/2016_day_16_c_how_to_tame_your_dragon_in_under_a/
+ /// See <https://www.reddit.com/r/adventofcode/comments/5ititq/2016_day_16_c_how_to_tame_your_dragon_in_under_a/>
121
fn dragon_parity(n: u32) -> bool {
122
let gray = n ^ (n >> 1);
123
((n & gray).count_ones() ^ gray) & 1 != 0
lefthook.yaml
@@ -13,3 +13,7 @@ pre-commit:
13
run: cargo nextest run --all
14
doctest:
15
run: cargo test --doc --all
16
+ docs:
17
+ run: cargo doc --document-private-items
18
+ env:
19
+ RUSTDOCFLAGS: -Dwarnings
0 commit comments