correct typo: Enviroment -> Environment (#100)

Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
This commit is contained in:
Sky Ao 2017-12-30 02:14:49 +08:00 committed by Sean McArthur
parent 138d6e8a32
commit 20a6e18922
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ pub enum Error {
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub enum ParseError { pub enum ParseError {
EnviromentUnsupported, EnvironmentUnsupported,
NotANumber, NotANumber,
HostIsNotAnIpAddress, HostIsNotAnIpAddress,
NotUnicode, NotUnicode,
@ -312,7 +312,7 @@ impl Strings for TestEnv {
fn parse_environment(s: &str) -> Result<Environment, ParseError> { fn parse_environment(s: &str) -> Result<Environment, ParseError> {
match s { match s {
"Kubernetes" => Ok(Environment::Kubernetes), "Kubernetes" => Ok(Environment::Kubernetes),
_ => Err(ParseError::EnviromentUnsupported), _ => Err(ParseError::EnvironmentUnsupported),
} }
} }