From a7092f91a6015dd32aab978b05c4b346d790aaaa Mon Sep 17 00:00:00 2001 From: Maxwase Date: Fri, 14 Jan 2022 00:17:11 +0300 Subject: [PATCH] Typos fix --- library/std/src/fs.rs | 2 +- library/std/src/path.rs | 2 +- src/bootstrap/bootstrap.py | 2 +- src/bootstrap/bootstrap_test.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/std/src/fs.rs b/library/std/src/fs.rs index a00b5e1232369..5537ec18d34a9 100644 --- a/library/std/src/fs.rs +++ b/library/std/src/fs.rs @@ -1050,7 +1050,7 @@ impl Metadata { /// /// fn main() -> std::io::Result<()> { /// let link_path = Path::new("link"); - /// symlink("/origin_does_not_exists/", link_path)?; + /// symlink("/origin_does_not_exist/", link_path)?; /// /// let metadata = fs::symlink_metadata(link_path)?; /// diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 7d401cff591c1..f509403fe2e43 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -2806,7 +2806,7 @@ impl Path { /// use std::os::unix::fs::symlink; /// /// let link_path = Path::new("link"); - /// symlink("/origin_does_not_exists/", link_path).unwrap(); + /// symlink("/origin_does_not_exist/", link_path).unwrap(); /// assert_eq!(link_path.is_symlink(), true); /// assert_eq!(link_path.exists(), false); /// ``` diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 7c36bb264c45e..6d7ab15326c5f 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -863,7 +863,7 @@ def get_toml(self, key, section=None): >>> rb.get_toml("key2") 'value2' - If the key does not exists, the result is None: + If the key does not exist, the result is None: >>> rb.get_toml("key3") is None True diff --git a/src/bootstrap/bootstrap_test.py b/src/bootstrap/bootstrap_test.py index 7bffc1c15206b..06ca3ce21b395 100644 --- a/src/bootstrap/bootstrap_test.py +++ b/src/bootstrap/bootstrap_test.py @@ -55,8 +55,8 @@ def setUp(self): def tearDown(self): rmtree(self.container) - def test_stamp_path_does_not_exists(self): - """Return True when the stamp file does not exists""" + def test_stamp_path_does_not_exist(self): + """Return True when the stamp file does not exist""" if os.path.exists(self.rustc_stamp_path): os.unlink(self.rustc_stamp_path) self.assertTrue(self.build.program_out_of_date(self.rustc_stamp_path, self.key))