diff --git a/src/ray/common/cgroup/cgroup_context.h b/src/ray/common/cgroup/cgroup_context.h index ab792d5ddd8a..c32fd8eeb94a 100644 --- a/src/ray/common/cgroup/cgroup_context.h +++ b/src/ray/common/cgroup/cgroup_context.h @@ -24,7 +24,7 @@ namespace ray { // Context used to setup cgroupv2 for a task / actor. struct PhysicalModeExecutionContext { - // Directory for cgroup, which is appled to application process. + // Directory for cgroup, which is applied to application process. std::string_view cgroup_directory; // UUID to indicate the current task / actor. std::string uuid; diff --git a/src/ray/common/cgroup/cgroup_utils.cc b/src/ray/common/cgroup/cgroup_utils.cc index b73586ecc563..bade271a5215 100644 --- a/src/ray/common/cgroup/cgroup_utils.cc +++ b/src/ray/common/cgroup/cgroup_utils.cc @@ -31,7 +31,7 @@ namespace { constexpr int kCgroupFilePerm = 0600; // Open a cgroup path and append write [content] into the file. -void OpenCgroupFileAndAppend(std::string_view path, std::string content) { +void OpenCgroupFileAndAppend(std::string_view path, std::string_view content) { std::ofstream out_file{path.data(), std::ios::out | std::ios::app}; out_file << content; }