aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkaiwu <kaiwu2004@gmail.com>2022-03-14 22:10:08 +0800
committerkaiwu <kaiwu2004@gmail.com>2022-03-14 22:10:08 +0800
commit1b7948bab0ae9b23cdb0693e5590205d177bee13 (patch)
tree7076e87569086defff8bd83f95b84c3ab71b8668 /src
parent8cf02f4b8fd6867cb407edc6f4cf0cdfaa883844 (diff)
downloadadvent-of-code-1b7948bab0ae9b23cdb0693e5590205d177bee13.tar.gz
advent-of-code-1b7948bab0ae9b23cdb0693e5590205d177bee13.zip
clang format
Diffstat (limited to 'src')
-rw-r--r--src/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 35f9b0e..4b2683d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -30,7 +30,8 @@ struct line_view {
line_view load_file(const char*);
line_view next_line(line_view, size_t*);
-template <typename F, typename... Args> void per_line(line_view file, F&& f, Args&&... args) {
+template <typename F, typename... Args>
+void per_line(line_view file, F&& f, Args&&... args) {
size_t offset = 0;
line_view lv;
do {