Skip to content

Commit 270ad97

Browse files
committed
Linting
1 parent 956b7fe commit 270ad97

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ too_many_lines = "warn"
280280
transmute_ptr_to_ptr = "warn"
281281
trivially_copy_pass_by_ref = "warn"
282282
try_err = "warn"
283-
unchecked_duration_subtraction = "warn"
283+
unchecked_time_subtraction = "warn"
284284
undocumented_unsafe_blocks = "warn"
285285
unicode_not_nfc = "warn"
286286
unimplemented = "warn"

src/year2017/day05.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

src/year2020/day20.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/year2021/day18.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.
170170
fn split(tree: &mut Snailfish) -> bool {
171171
for &i in &IN_ORDER {

src/year2021/day21.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)