Skip to content

Commit 012c8e1

Browse files
authored
Merge pull request fspoettel#75 from penelopeysm/main
2 parents 36608db + 1f140f6 commit 012c8e1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,10 @@ You can pass the report a tool like [dh-view](https://nnethercote.github.io/dh_v
282282
- [itertools](https://crates.io/crates/itertools): Extends iterators with extra methods and adaptors. Frequently useful for aoc puzzles.
283283
- [regex](https://crates.io/crates/regex): Official regular expressions implementation for Rust.
284284

285-
A curated list of popular crates can be found on [blessred.rs](https://blessed.rs/crates).
285+
A curated list of popular crates can be found on [blessed.rs](https://blessed.rs/crates).
286286

287287
Do you have aoc-specific crate recommendations? [Share them!](https://github.com/fspoettel/advent-of-code-rust/edit/main/README.md)
288288

289-
## Common pitfalls
290-
291-
- **Integer overflows:** This template uses 32-bit integers by default because it is generally faster - for example when packed in large arrays or structs - than using 64-bit integers everywhere. For some problems, solutions for real input might exceed 32-bit integer space. While this is checked and panics in `debug` mode, integers [wrap](https://doc.rust-lang.org/book/ch03-02-data-types.html#integer-overflow) in `release` mode, leading to wrong output when running your solution.
292-
293289
## Footnotes
294290

295291
[^1]: The session cookie might expire after a while (~1 month) which causes the downloads to fail. To fix this issue, refresh the `.adventofcode.session` file.

src/template.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
advent_of_code::solution!(%DAY_NUMBER%);
22

3-
pub fn part_one(input: &str) -> Option<u32> {
3+
pub fn part_one(input: &str) -> Option<u64> {
44
None
55
}
66

7-
pub fn part_two(input: &str) -> Option<u32> {
7+
pub fn part_two(input: &str) -> Option<u64> {
88
None
99
}
1010

0 commit comments

Comments
 (0)