Skip to content

Commit

Permalink
v.0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alyxshang committed Sep 26, 2024
1 parent 39d44b8 commit f2bda30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/modules/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ use super::luhny::validate_imei;
pub fn cli() -> Result<String,LuhnyErr> {
let mut luhny: App = App::new(
"Luhny",
"Alyx Shang",
"0.1.0"
"0.1.0",
"Alyx Shang"
);
luhny.add_arg("chk", "check the supplied IMEI number", &true);
luhny.add_arg("chk", " check the supplied IMEI number", &true);
if luhny.version_is(){
Ok(luhny.version_info())
}
Expand Down
8 changes: 4 additions & 4 deletions src/modules/luhny.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use coutils::is_int;
use super::err::LuhnyErr;

/// This function checks whether a string consists of
/// only digits. If this is the case, `true` is returned.
/// If this is not the case, `false` is returned.
/// only digits. If this is the case, "true" is returned.
/// If this is not the case, "false" is returned.
pub fn is_number_sequence(subject: &String) -> bool {
let mut result: bool = true;
let subject_characters: Vec<char> = subject.chars().collect();
Expand All @@ -29,8 +29,8 @@ pub fn is_number_sequence(subject: &String) -> bool {
}

/// This function iterates through
/// all items in a vector, doubles each,
/// and adds them to a new vector. If the
/// all items in a vector, doubles each item,
/// and adds each double to a new vector. If the
/// operation fails, an error is returned.
pub fn double_numbers_in_arr(
num_array: &Vec<usize>
Expand Down

0 comments on commit f2bda30

Please sign in to comment.