Skip to content

Commit ae8f39e

Browse files
authored
Rollup merge of #92866 - maxwase:does_exist_typo, r=Mark-Simulacrum
"Does exists" typos fix Fixed some typos
2 parents deee6f7 + a7092f9 commit ae8f39e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

library/std/src/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ impl Metadata {
10501050
///
10511051
/// fn main() -> std::io::Result<()> {
10521052
/// let link_path = Path::new("link");
1053-
/// symlink("/origin_does_not_exists/", link_path)?;
1053+
/// symlink("/origin_does_not_exist/", link_path)?;
10541054
///
10551055
/// let metadata = fs::symlink_metadata(link_path)?;
10561056
///

library/std/src/path.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ impl Path {
28062806
/// use std::os::unix::fs::symlink;
28072807
///
28082808
/// let link_path = Path::new("link");
2809-
/// symlink("/origin_does_not_exists/", link_path).unwrap();
2809+
/// symlink("/origin_does_not_exist/", link_path).unwrap();
28102810
/// assert_eq!(link_path.is_symlink(), true);
28112811
/// assert_eq!(link_path.exists(), false);
28122812
/// ```

src/bootstrap/bootstrap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def get_toml(self, key, section=None):
863863
>>> rb.get_toml("key2")
864864
'value2'
865865
866-
If the key does not exists, the result is None:
866+
If the key does not exist, the result is None:
867867
868868
>>> rb.get_toml("key3") is None
869869
True

src/bootstrap/bootstrap_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def setUp(self):
5555
def tearDown(self):
5656
rmtree(self.container)
5757

58-
def test_stamp_path_does_not_exists(self):
59-
"""Return True when the stamp file does not exists"""
58+
def test_stamp_path_does_not_exist(self):
59+
"""Return True when the stamp file does not exist"""
6060
if os.path.exists(self.rustc_stamp_path):
6161
os.unlink(self.rustc_stamp_path)
6262
self.assertTrue(self.build.program_out_of_date(self.rustc_stamp_path, self.key))

0 commit comments

Comments
 (0)