Selaa lähdekoodia

Merge pull request #88 from dxps/typos

Jon Kelley 2 vuotta sitten
vanhempi
commit
93c7651312
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 2 2
      src/cli/create/mod.rs
  2. 1 1
      src/cli/mod.rs

+ 2 - 2
src/cli/create/mod.rs

@@ -16,7 +16,7 @@ pub struct Create {
 
 impl Create {
     pub fn create(self) -> Result<()> {
-        if Self::name_vaild_check(self.name.clone()) {
+        if Self::name_valid_check(self.name.clone()) {
             return custom_error!("❗Unsupported project name.");
         }
 
@@ -77,7 +77,7 @@ impl Create {
         Ok(())
     }
 
-    fn name_vaild_check(name: String) -> bool {
+    fn name_valid_check(name: String) -> bool {
         let r = Regex::new(r"^[a-zA-Z][a-zA-Z0-9\-_]$").unwrap();
         r.is_match(&name)
     }

+ 1 - 1
src/cli/mod.rs

@@ -78,7 +78,7 @@ impl Commands {
         match self {
             Commands::Build(_) => "build",
             Commands::Translate(_) => "translate",
-            Commands::Serve(_) => "sevre",
+            Commands::Serve(_) => "serve",
             Commands::Create(_) => "create",
             Commands::Clean(_) => "clean",
             Commands::Config(_) => "config",