correct typo: Enviroment -> Environment (#100)
Signed-off-by: Sky Ao <aoxiaojian@gmail.com>
This commit is contained in:
parent
138d6e8a32
commit
20a6e18922
|
@ -86,7 +86,7 @@ pub enum Error {
|
|||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum ParseError {
|
||||
EnviromentUnsupported,
|
||||
EnvironmentUnsupported,
|
||||
NotANumber,
|
||||
HostIsNotAnIpAddress,
|
||||
NotUnicode,
|
||||
|
@ -312,7 +312,7 @@ impl Strings for TestEnv {
|
|||
fn parse_environment(s: &str) -> Result<Environment, ParseError> {
|
||||
match s {
|
||||
"Kubernetes" => Ok(Environment::Kubernetes),
|
||||
_ => Err(ParseError::EnviromentUnsupported),
|
||||
_ => Err(ParseError::EnvironmentUnsupported),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue