chore: fix some comments

Signed-off-by: cloudclaim <824973921@qq.com>
This commit is contained in:
cloudclaim 2024-06-07 16:28:29 +08:00
parent 0059194a9e
commit 1905c9ac46
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ const (
TestStateReadSigErr // I/O error on reading .minisig (download only)
TestStateOpenErr // I/O error on opening files
TestStateOpenSigErr // I/O error on opening .minisig
TestStatePathErr // unparseable path to files (download only)
TestStatePathErr // unparsable path to files (download only)
)
type SourceTestData struct {

View File

@ -115,7 +115,7 @@ https://raw.githubusercontent.com/anudeepND/blacklist/master/adservers.txt
# OISD.NL - Blocks ads, phishing, malware, tracking and more. WARNING: this is a huge list.
# https://dblw.oisd.nl/
# OISD.NL (smaller subset) - Blocks ads, phishing, malware, tracking and more. Tries to miminize false positives.
# OISD.NL (smaller subset) - Blocks ads, phishing, malware, tracking and more. Tries to minimize false positives.
https://dblw.oisd.nl/basic/
# OISD.NL (extra) - Blocks ads, phishing, malware, tracking and more. Protection over functionality.

View File

@ -84,7 +84,7 @@ func FixImports(ctx context.Context, filename string, src []byte, opt *Options)
// env is needed.
func ApplyFixes(fixes []*ImportFix, filename string, src []byte, opt *Options, extraMode parser.Mode) (formatted []byte, err error) {
// Don't use parse() -- we don't care about fragments or statement lists
// here, and we need to work with unparseable files.
// here, and we need to work with unparsable files.
fileSet := token.NewFileSet()
parserMode := parser.Mode(0)
if opt.Comments {