From 2269c76575c8ce2e8e06e6da52ea6389a5a89d8a Mon Sep 17 00:00:00 2001 From: "Michael J. Curry" Date: Fri, 30 Sep 2016 10:29:45 -0400 Subject: [PATCH] small changes to strings --- src/commands/new.rs | 4 ++-- src/main.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/new.rs b/src/commands/new.rs index 64ba920..fc2c312 100644 --- a/src/commands/new.rs +++ b/src/commands/new.rs @@ -121,7 +121,7 @@ fn ask_add_field_u32(field_name: &str, schema: &mut Schema) { fn ask_add_field(schema: &mut Schema) { println!("\n\n"); let field_name = prompt_input("New field name ", field_name_validate); - let text_or_integer = prompt_options("Text or unsigned 32-bit Integer", vec!('T', 'I')); + let text_or_integer = prompt_options("Text or unsigned 32-bit integer", vec!('T', 'I')); if text_or_integer =='T' { ask_add_field_text(&field_name, schema); } @@ -132,7 +132,7 @@ fn ask_add_field(schema: &mut Schema) { fn run_new(directory: PathBuf) -> tantivy::Result<()> { println!("\n{} ", Style::new().bold().fg(Green).paint("Creating new index")); - println!("{} ", Style::new().bold().fg(Green).paint("Let's define it's schema!")); + println!("{} ", Style::new().bold().fg(Green).paint("Let's define its schema!")); let mut schema = Schema::new(); loop { ask_add_field(&mut schema); diff --git a/src/main.rs b/src/main.rs index 56e65e9..33cfd66 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ fn main() { .short("t") .long("num_threads") .value_name("num_threads") - .help("Number of indexing thread. By default num cores - 1 will be used") + .help("Number of indexing threads. By default num cores - 1 will be used") .default_value("0")) ) .subcommand( @@ -75,13 +75,13 @@ fn main() { .short("q") .long("queries") .value_name("queries") - .help("File containing queries (one-per line) to run in the benchmark.") + .help("File containing queries (one per line) to run in the benchmark.") .required(true)) .arg(Arg::with_name("num_repeat") .short("n") .long("num_repeat") .value_name("num_repeat") - .help("Number of time to repeat the benchmark.") + .help("Number of times to repeat the benchmark.") .default_value("1")) ) .subcommand( @@ -109,4 +109,4 @@ fn main() { }, _ => {} } -} \ No newline at end of file +}