Skip to content

Commit 8e7a5c0

Browse files
authored
Fix typos at several places (ray-project#50979)
in comments and docs Signed-off-by: co63oc <[email protected]>
1 parent 02d4a3a commit 8e7a5c0

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ package(
2121
default_visibility = ["//visibility:public"],
2222
)
2323

24-
# Hermetic python envionment, currently only used for CI infra and scripts.
24+
# Hermetic python environment, currently only used for CI infra and scripts.
2525

2626
py_runtime(
2727
name = "python3_runtime",

ci/docker/ml.build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set -euo pipefail
1919
set -x
2020

2121
if [[ "${PYTHON-}" == "3.12" ]]; then
22-
# hebo and doc test depdencies are not needed for 3.12 test jobs
22+
# hebo and doc test dependencies are not needed for 3.12 test jobs
2323
TRAIN_TESTING=1 TUNE_TESTING=1 DATA_PROCESSING_TESTING=1 \
2424
INSTALL_HDFS=1 ./ci/env/install-dependencies.sh
2525
else

ci/env/install-core-prerelease-dependencies.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
# install all unbounded dependencies in setup.py for ray core
6-
# TOOD(scv119) reenable grpcio once https://github.com/grpc/grpc/issues/31885 is fixed.
7-
# TOOD(scv119) reenable jsonschema once https://github.com/ray-project/ray/issues/33411 is fixed.
6+
# TODO(scv119) reenable grpcio once https://github.com/grpc/grpc/issues/31885 is fixed.
7+
# TODO(scv119) reenable jsonschema once https://github.com/ray-project/ray/issues/33411 is fixed.
88
DEPS=(aiosignal frozenlist requests protobuf)
99
python -m pip install -U --pre --upgrade-strategy=eager "${DEPS[@]}"

ci/lint/check-banned-words.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# Checks Python and doc files for common mispellings.
3+
# Checks Python and doc files for common misspellings.
44

55
BANNED_WORDS="RLLib Rllib Kuberay"
66

ci/lint/check_import_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def check_import(file):
5757
parser.add_argument("path", help="File path to check. e.g. '.' or './src'")
5858
# TODO(simon): For the future, consider adding a feature to explicitly
5959
# white-list the path instead of skipping them.
60-
parser.add_argument("-s", "--skip", action="append", help="Skip certian directory")
60+
parser.add_argument("-s", "--skip", action="append", help="Skip certain directory")
6161
args = parser.parse_args()
6262

6363
file_path = Path(args.path)

cpp/include/ray/api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ std::vector<std::shared_ptr<T>> Get(const std::vector<ray::ObjectRef<T>> &object
7979
/// This method will be blocked until the object is ready.
8080
///
8181
/// \param[in] object The object reference which should be returned.
82-
/// \param[in] timeout_ms The maximum amount of time in miliseconds to wait before
82+
/// \param[in] timeout_ms The maximum amount of time in milliseconds to wait before
8383
/// returning.
8484
/// \return shared pointer of the result.
8585
template <typename T>
@@ -89,7 +89,7 @@ std::shared_ptr<T> Get(const ray::ObjectRef<T> &object, const int &timeout_ms);
8989
/// This method will be blocked until all the objects are ready.
9090
///
9191
/// \param[in] objects The object array which should be got.
92-
/// \param[in] timeout_ms The maximum amount of time in miliseconds to wait before
92+
/// \param[in] timeout_ms The maximum amount of time in milliseconds to wait before
9393
/// returning.
9494
/// \return shared pointer array of the result.
9595
template <typename T>

cpp/include/ray/api/object_ref.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class ObjectRef {
106106
/// Get the object from the object store.
107107
/// This method will be blocked until the object is ready.
108108
///
109-
/// \param timeout_ms The maximum amount of time in miliseconds to wait before
109+
/// \param timeout_ms The maximum amount of time in milliseconds to wait before
110110
/// returning.
111111
/// \return shared pointer of the result.
112112
std::shared_ptr<T> Get(const int &timeout_ms) const;
@@ -207,7 +207,7 @@ class ObjectRef<void> {
207207
/// Get the object from the object store.
208208
/// This method will be blocked until the object is ready.
209209
///
210-
/// \param timeout_ms The maximum amount of time in miliseconds to wait before
210+
/// \param timeout_ms The maximum amount of time in milliseconds to wait before
211211
/// returning.
212212
/// \return shared pointer of the result.
213213
void Get(const int &timeout_ms) const {

cpp/src/ray/runtime/task/local_mode_task_submitter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ObjectID LocalModeTaskSubmitter::Submit(InvocationSpec &invocation,
3434
const ActorCreationOptions &options) {
3535
/// TODO(SongGuyang): Make the information of TaskSpecification more reasonable
3636
/// We just reuse the TaskSpecification class and make the single process mode work.
37-
/// Maybe some infomation of TaskSpecification are not reasonable or invalid.
37+
/// Maybe some information of TaskSpecification are not reasonable or invalid.
3838
/// We will enhance this after implement the cluster mode.
3939
auto functionDescriptor = FunctionDescriptorBuilder::BuildCpp(
4040
invocation.remote_function_holder.function_name);

cpp/src/ray/test/examples/metric_example.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void test_metric(const std::string &exec_type, int total_time) {
2626
ray::Gauge gauge("ray_test_gauge", "test gauge", "unit", {"tag1", "tag2"});
2727
ray::Counter counter("ray_test_counter", "test counter", "unit", {"tag1", "tag2"});
2828
ray::Histogram histogram(
29-
"ray_test_histogram", "test hitogram", "unit", {1, 10}, {"tag1", "tag2"});
29+
"ray_test_histogram", "test histogram", "unit", {1, 10}, {"tag1", "tag2"});
3030
ray::Sum sum("ray_test_sum", "test sum", "unit", {"tag1", "tag2"});
3131

3232
std::unordered_map<std::string, std::string> tag_1 = {{"tag1", "increasing"},

java/api/src/main/java/io/ray/api/ObjectRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface ObjectRef<T> {
1717
* Fetch the object from the object store, this method will block until the object is locally
1818
* available.
1919
*
20-
* @param timeoutMs The maximum amount of time in miliseconds to wait before returning.
20+
* @param timeoutMs The maximum amount of time in milliseconds to wait before returning.
2121
* @throws RayTimeoutException If it's timeout to get the object.
2222
*/
2323
T get(long timeoutMs);

0 commit comments

Comments
 (0)