File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ too_many_lines = "warn"
280280transmute_ptr_to_ptr = " warn"
281281trivially_copy_pass_by_ref = " warn"
282282try_err = " warn"
283- unchecked_duration_subtraction = " warn"
283+ unchecked_time_subtraction = " warn"
284284undocumented_unsafe_blocks = " warn"
285285unicode_not_nfc = " warn"
286286unimplemented = " warn"
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ pub fn part2(input: &[i32]) -> usize {
7171
7272 while index < jump. len ( ) {
7373 if index < coarse {
74- // Index lies withing precomputed blocks.
74+ // Index lies within precomputed blocks.
7575 let base = index / 16 ;
7676 let offset = index % 16 ;
7777 let value = compact[ base] as usize ;
Original file line number Diff line number Diff line change 11//! # Jurassic Jigsaw
22//!
3- //! At first this seems like a daunting problem. However a little anaylsis shows that the input
3+ //! At first this seems like a daunting problem. However a little analysis shows that the input
44//! has some nice properties that makes solving this more tractable.
55//!
66//! * Tile edges match with at most one other tile
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ fn explode(tree: &mut Snailfish, pair: usize) {
165165///
166166/// Search the tree in an *in-order* traversal, splitting the first node over `10` found (if any).
167167/// We can optimize the rules by immediately exploding if this results in a node 4 levels deep,
168- /// as we know that the prior optimzation in the [`add`] function means that this is the only
168+ /// as we know that the prior optimization in the [`add`] function means that this is the only
169169/// explosion possible.
170170fn split ( tree : & mut Snailfish ) -> bool {
171171 for & i in & IN_ORDER {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub fn part1(input: &State) -> usize {
4646
4747/// [Memoization](https://en.wikipedia.org/wiki/Memoization) is the key to solving part two in a
4848/// reasonable time. For each possible starting universe we record the number of winning and losing
49- /// recursive universes so that we can re-use the result and avoid uneccessary calculations.
49+ /// recursive universes so that we can re-use the result and avoid unnecessary calculations.
5050///
5151/// Each player can be in position 1 to 10 and can have a score from 0 to 20 (as a score of 21
5252/// ends the game). This is a total of (10 * 21) ^ 2 = 44100 possible states. For speed this
You can’t perform that action at this time.
0 commit comments