aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/common.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-08-04 14:14:40 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-08-04 16:53:31 +0200
commit1089015fcc3257dca9eac0b3319e242d95423973 (patch)
treef14e38e4f45d5da9d42ecdc27b87eda3638fe07a /pkg/csource/common.go
parent5ed76afa814812edaeaff2ea7b3227c18d5de5a6 (diff)
executor: remove block comments
1. We don't generally use /* */ block comments, few precedents we have are inconsistent with the rest of the code. 2. pkg/csource does not strip them from the resulting code. Remove the cases we have and add a test to prevent new ones being added.
Diffstat (limited to 'pkg/csource/common.go')
-rw-r--r--pkg/csource/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/common.go b/pkg/csource/common.go
index c767349e2..a4adf3a56 100644
--- a/pkg/csource/common.go
+++ b/pkg/csource/common.go
@@ -52,7 +52,7 @@ func createCommonHeader(p, mmapProg *prog.Prog, replacements map[string]string,
}
for from, to := range replacements {
- src = bytes.Replace(src, []byte("/*"+from+"*/"), []byte(to), -1)
+ src = bytes.Replace(src, []byte("/*{{{"+from+"}}}*/"), []byte(to), -1)
}
for from, to := range map[string]string{