Skip to content

Commit 5cde5ae

Browse files
committed
Refine
1 parent 574e37c commit 5cde5ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: interp/arith_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// go.sh/interp :: arith_test.go
33
//
4-
// Copyright (c) 2021 Akinori Hattori <[email protected]>
4+
// Copyright (c) 2021-2024 Akinori Hattori <[email protected]>
55
//
66
// SPDX-License-Identifier: MIT
77
//
@@ -323,7 +323,7 @@ var evalErrorTests = []struct {
323323
{"0 &= 1", "'&=' requires lvalue"},
324324
{"0 ^= 1", "'^=' requires lvalue"},
325325
{"0 |= 1", "'|=' requires lvalue"},
326-
// devide by zero
326+
// divide by zero
327327
{"0 / 0", "integer divide by zero"},
328328
{"0 % 0", "integer divide by zero"},
329329
{"M /= 0", "integer divide by zero"},

Diff for: printer/printer.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// go.sh/printer :: printer.go
33
//
4-
// Copyright (c) 2018-2021 Akinori Hattori <[email protected]>
4+
// Copyright (c) 2018-2024 Akinori Hattori <[email protected]>
55
//
66
// SPDX-License-Identifier: MIT
77
//
@@ -54,10 +54,10 @@ type Config struct {
5454
Do Style
5555

5656
// Case controls the additional indentation of the case conditional
57-
// constract.
57+
// construct.
5858
Case bool
5959

60-
// Then controls the output of the if conditional constract:
60+
// Then controls the output of the if conditional construct:
6161
// - newline before the reserved keyword "then"
6262
Then Style
6363
}

0 commit comments

Comments
 (0)