mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2026-04-08 18:13:36 +00:00
rename data to buf
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
type comparator func([]int, int) bool
|
||||
|
||||
func Solve(data []byte) (int, error) {
|
||||
r := bytes.NewReader(data)
|
||||
func Solve(buf []byte) (int, error) {
|
||||
r := bytes.NewReader(buf)
|
||||
sum, err := parseLines(r)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
type comparator func([]int, int) bool
|
||||
type dampener func([]int, comparator, int) bool
|
||||
|
||||
func Solve(data []byte) (int, error) {
|
||||
r := bytes.NewReader(data)
|
||||
func Solve(buf []byte) (int, error) {
|
||||
r := bytes.NewReader(buf)
|
||||
sum, err := parseLines(r)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
|
||||
Reference in New Issue
Block a user