Skip to content

Commit ff1120b

Browse files
committed
Fix typos
1 parent 1d3baa2 commit ff1120b

File tree

66 files changed

+126
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+126
-126
lines changed

RELEASE_NOTES

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Enhancements:
6262
Amazon CloudWatch Agent 1.300044.0 (2024-08-14)
6363
========================================================================
6464
Bug Fixes:
65-
* [ContainerInsights] Update GPU usage metrics emitted
65+
* [ContainerInsights] Update GPU usage metrics emitted
6666
* [ContainerInsights] Deprecate runtime tag from neuron metrics to fix false average calculation
6767

6868
Enhancements:
@@ -199,7 +199,7 @@ Enhancements:
199199
Amazon CloudWatch Agent 1.300033.0 (2024-01-31)
200200
========================================================================
201201

202-
Enchancements:
202+
Enhancements:
203203
* [AppSignals] Log correlation
204204
* [AppSignals] New Metric Rollup
205205
* [AppSignals] Add metrics cardinality control

THIRD-PARTY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1705,7 +1705,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17051705

17061706

17071707
-------
1708-
internal/common/binary.go in the gopsutil is copied and modifid from
1708+
internal/common/binary.go in the gopsutil is copied and modified from
17091709
golang/encoding/binary.go.
17101710

17111711

cfg/aws/aws_sdk_logging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var sdkLogLevel aws.LogLevelType = aws.LogOff
2727
// The levels are a bit field that is OR'd together.
2828
// So the user can specify multiple levels and we OR them together.
2929
// Example: "aws_sdk_log_level": "LogDebugWithSigning | LogDebugWithRequestErrors".
30-
// JSON string value must contain the levels seperated by "|" and optionally whitespace.
30+
// JSON string value must contain the levels separated by "|" and optionally whitespace.
3131
func SetSDKLogLevel(sdkLogLevelString string) {
3232
var temp aws.LogLevelType = aws.LogOff
3333

cfg/aws/refreshable_shared_credentials_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Refreshable_shared_credentials_provider struct {
1313
credentials.Expiry
1414
sharedCredentialsProvider *credentials.SharedCredentialsProvider
1515

16-
// Retrival frequency, if the value is 15 minutes, the credentials will be retrieved every 15 minutes.
16+
// Retrieval frequency, if the value is 15 minutes, the credentials will be retrieved every 15 minutes.
1717
ExpiryWindow time.Duration
1818
}
1919

internal/httpclient/httpclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (h *HttpClient) request(endpoint string) ([]byte, error) {
8484
}
8585

8686
if len(body) == maxHttpResponseLength {
87-
return nil, fmt.Errorf("response from %s, execeeds the maximum length: %v", endpoint, maxHttpResponseLength)
87+
return nil, fmt.Errorf("response from %s, exceeds the maximum length: %v", endpoint, maxHttpResponseLength)
8888
}
8989
return body, nil
9090
}

internal/k8sCommon/k8sclient/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func createNodeListWatch(client kubernetes.Interface) cache.ListerWatcher {
166166
return &cache.ListWatch{
167167
ListFunc: func(opts metav1.ListOptions) (runtime.Object, error) {
168168
opts.ResourceVersion = ""
169-
// Passing emput context as this was not required by old List()
169+
// Passing empty context as this was not required by old List()
170170
return client.CoreV1().Nodes().List(ctx, opts)
171171
},
172172
WatchFunc: func(opts metav1.ListOptions) (watch.Interface, error) {

internal/logscommon/const.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const (
1111

1212
//Field key in metrics indicting if the line is the start of the multiline.
1313
//If this key is not present, it means the multiline mode is not enabled,
14-
// we set it to true, it indicates it is a real event, but not part of a mulltiple line.
14+
// we set it to true, it indicates it is a real event, but not part of a multiple line.
1515
//If this key is false, it means the line is not start line of multiline entry.
1616
//If this key is true, it means the line is the start of multiline entry.
1717
MultiLineStartField = "multi_line_start"

internal/mapWithExpiry/mapWIthExpiry.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,38 @@ type mapEntry struct {
1212

1313
// MapWithExpiry act like a map which provide a method to clean up expired entries
1414
type MapWithExpiry struct {
15-
ttl time.Duration
16-
entris map[string]*mapEntry
15+
ttl time.Duration
16+
entries map[string]*mapEntry
1717
}
1818

1919
func NewMapWithExpiry(ttl time.Duration) *MapWithExpiry {
20-
return &MapWithExpiry{ttl: ttl, entris: make(map[string]*mapEntry)}
20+
return &MapWithExpiry{ttl: ttl, entries: make(map[string]*mapEntry)}
2121
}
2222

2323
func (m *MapWithExpiry) CleanUp(now time.Time) {
24-
for k, v := range m.entris {
24+
for k, v := range m.entries {
2525
if now.Sub(v.creation) >= m.ttl {
26-
delete(m.entris, k)
26+
delete(m.entries, k)
2727
}
2828
}
2929
}
3030

3131
func (m *MapWithExpiry) Get(key string) (interface{}, bool) {
32-
res, ok := m.entris[key]
32+
res, ok := m.entries[key]
3333
if ok {
3434
return res.content, true
3535
}
3636
return nil, false
3737
}
3838

3939
func (m *MapWithExpiry) Set(key string, content interface{}) {
40-
m.entris[key] = &mapEntry{content: content, creation: time.Now()}
40+
m.entries[key] = &mapEntry{content: content, creation: time.Now()}
4141
}
4242

4343
func (m *MapWithExpiry) Size() int {
44-
return len(m.entris)
44+
return len(m.entries)
4545
}
4646

4747
func (m *MapWithExpiry) Delete(key string) {
48-
delete(m.entris, key)
48+
delete(m.entries, key)
4949
}

internal/util/user/userutil.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func changeFileOwner(uid, gid int) error {
5555
}
5656

5757
// chownRecursive would recursively change the ownership of the directory
58-
// similar to `chown -R <dir>`, except it will igore any files that are:
58+
// similar to `chown -R <dir>`, except it will ignore any files that are:
5959
// - Executable
6060
// - With SUID or SGID bit set
6161
// - Allow anyone to write to
@@ -78,7 +78,7 @@ func chownRecursive(uid, gid int, dir string) error {
7878
}
7979

8080
// Do not change ownership of executable files
81-
// Perm() returns the lower 7 bit of permission of file, which represes rwxrwxrws
81+
// Perm() returns the lower 7 bit of permission of file, which represents rwxrwxrws
8282
// 0111 maps to --x--x--x, so it would check any user have the execution right
8383
if fmode.Perm()&0111 != 0 {
8484
return nil

licensing/THIRD-PARTY-LICENSES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17041704

17051705

17061706
-------
1707-
internal/common/binary.go in the gopsutil is copied and modifid from
1707+
internal/common/binary.go in the gopsutil is copied and modified from
17081708
golang/encoding/binary.go.
17091709

17101710

0 commit comments

Comments
 (0)