Skip to content

Commit fb0fed7

Browse files
authored
zug: Use language-specific heredocs
1 parent 39f8ac9 commit fb0fed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/z/zug.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def install
2323
end
2424

2525
test do
26-
(testpath/"test.cpp").write <<~EOS
26+
(testpath/"test.cpp").write <<~CPP
2727
#include <string>
2828
#include <zug/transducer/filter.hpp>
2929
#include <zug/transducer/map.hpp>
@@ -32,7 +32,7 @@ def install
3232
auto xf = zug::filter([](int x) { return x > 0; })
3333
| zug::map([](int x) { return std::to_string(x); });
3434
}
35-
EOS
35+
CPP
3636

3737
system ENV.cxx, "-std=c++17", "-I#{include}", "test.cpp", "-o", "test"
3838
system "./test"

0 commit comments

Comments
 (0)