chore: fix typos in comments (#4122)

This commit is contained in:
Kian-Meng Ang
2022-06-29 02:19:17 +08:00
committed by GitHub
parent 3538efe727
commit 018b077630
10 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -181,7 +181,7 @@ impl<'a> Context<'a> {
home_dir()
}
// Retrives a environment variable from the os or from a table if in testing mode
// Retrieves a environment variable from the os or from a table if in testing mode
#[cfg(test)]
pub fn get_env<K: AsRef<str>>(&self, key: K) -> Option<String> {
self.env
@@ -195,7 +195,7 @@ impl<'a> Context<'a> {
env::var(key.as_ref()).ok()
}
// Retrives a environment variable from the os or from a table if in testing mode (os version)
// Retrieves a environment variable from the os or from a table if in testing mode (os version)
#[cfg(test)]
pub fn get_env_os<K: AsRef<str>>(&self, key: K) -> Option<OsString> {
self.env.get(key.as_ref()).map(OsString::from)