Skip to content

Commit 675b7db

Browse files
committed
fix some typos
Signed-off-by: Xing Xin <xingxin.xx@bytedance.com>
1 parent e6d888d commit 675b7db

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Protobuild.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generators = ["go"]
1313
# This is the default.
1414
after = ["/usr/local/include", "/usr/include"]
1515

16-
# Aggregrate the API descriptors to lock down API changes.
16+
# Aggregate the API descriptors to lock down API changes.
1717
[[descriptors]]
1818
prefix = "github.com/containerd/cgroups/cgroup1/stats"
1919
target = "cgroup1/stats/metrics.pb.txt"

cgroup1/utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ func getCgroupDestination(subsystem string) (string, error) {
236236
return "", ErrNoCgroupMountDestination
237237
}
238238

239-
func pathers(subystems []Subsystem) []pather {
239+
func pathers(subsystems []Subsystem) []pather {
240240
var out []pather
241-
for _, s := range subystems {
241+
for _, s := range subsystems {
242242
if p, ok := s.(pather); ok {
243243
out = append(out, p)
244244
}

cgroup2/devicefilter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
*/
1616

17-
// Devicefilter containes eBPF device filter program
17+
// Devicefilter contains eBPF device filter program
1818
//
1919
// The implementation is based on https://github.com/containers/crun/blob/0.10.2/src/libcrun/ebpf.c
2020
//

cgroup2/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func (c *Manager) ToggleControllers(controllers []string, t ControllerToggle) er
317317
}
318318
filePath := filepath.Join(f, subtreeControl)
319319
if err := c.writeSubtreeControl(filePath, controllers, t); err != nil {
320-
// When running as rootless, the user may face EPERM on parent groups, but it is neglible when the
320+
// When running as rootless, the user may face EPERM on parent groups, but it is negligible when the
321321
// controller is already written.
322322
// So we only return the last error.
323323
lastErr = fmt.Errorf("failed to write subtree controllers %+v to %q: %w", controllers, filePath, err)

0 commit comments

Comments
 (0)