1
Fork 0

Typos fix

This commit is contained in:
Maxwase 2022-01-14 00:17:11 +03:00
parent 256721ee51
commit a7092f91a6
4 changed files with 5 additions and 5 deletions

View file

@ -1050,7 +1050,7 @@ impl Metadata {
/// ///
/// fn main() -> std::io::Result<()> { /// fn main() -> std::io::Result<()> {
/// let link_path = Path::new("link"); /// 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)?; /// let metadata = fs::symlink_metadata(link_path)?;
/// ///

View file

@ -2806,7 +2806,7 @@ impl Path {
/// use std::os::unix::fs::symlink; /// use std::os::unix::fs::symlink;
/// ///
/// let link_path = Path::new("link"); /// 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.is_symlink(), true);
/// assert_eq!(link_path.exists(), false); /// assert_eq!(link_path.exists(), false);
/// ``` /// ```

View file

@ -863,7 +863,7 @@ class RustBuild(object):
>>> rb.get_toml("key2") >>> rb.get_toml("key2")
'value2' '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 >>> rb.get_toml("key3") is None
True True

View file

@ -55,8 +55,8 @@ class ProgramOutOfDate(unittest.TestCase):
def tearDown(self): def tearDown(self):
rmtree(self.container) rmtree(self.container)
def test_stamp_path_does_not_exists(self): def test_stamp_path_does_not_exist(self):
"""Return True when the stamp file does not exists""" """Return True when the stamp file does not exist"""
if os.path.exists(self.rustc_stamp_path): if os.path.exists(self.rustc_stamp_path):
os.unlink(self.rustc_stamp_path) os.unlink(self.rustc_stamp_path)
self.assertTrue(self.build.program_out_of_date(self.rustc_stamp_path, self.key)) self.assertTrue(self.build.program_out_of_date(self.rustc_stamp_path, self.key))