Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 92aad00

Browse files
cmagliealessio-perugini
andcommitted
Apply suggestions from code review
Co-authored-by: Alessio Perugini <alessioper.98@gmail.com>
1 parent 825e91d commit 92aad00

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

‎internal/builder/diagnostics/compiler_detection.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var runProcess = func(args ...string) []string {
4444
}
4545

4646
// DetectCompilerFromCommandLine tries to detect a compiler from a given command line.
47-
// If probleCompiler is true, the compiler may be executed with different flags to
47+
// If probeCompiler is true, the compiler may be executed with different flags to
4848
// infer the version or capabilities.
4949
func DetectCompilerFromCommandLine(args []string, probeCompiler bool) *DetectedCompiler {
5050
if len(args) == 0 {
@@ -61,7 +61,7 @@ func DetectCompilerFromCommandLine(args []string, probeCompiler bool) *DetectedC
6161
}
6262

6363
if family == "gcc" && probeCompiler {
64-
// Run "gcc --verion" to obtain more info
64+
// Run "gcc --version" to obtain more info
6565
res.DetailedVersion = runProcess(args[0], "--version")
6666

6767
// Usually on the first line we get the compiler architecture and

‎internal/builder/diagnostics/parser_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,5 @@ func runParserTest(t *testing.T, testFile string) {
5252
require.NoError(t, err)
5353
golden, err := paths.New("testdata", "compiler_outputs", testFile+".json").ReadFile()
5454
require.NoError(t, err)
55-
// fmt.Println(string(output))
5655
require.Equal(t, string(golden), string(output))
5756
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /