Fix incorrect wasm subcommand 'about' text.

This commit is contained in:
Zach Reizner
2018-11-25 17:42:10 -08:00
committed by Benjamin Bouvier
parent 30654a6a7d
commit f028c53479
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ fn get_vec(argument_vec: Option<clap::Values>) -> Vec<String> {
fn add_wasm_or_compile<'a>(cmd: &str) -> clap::App<'a, 'a> {
let about_str = match cmd {
"wasm" => "Compiles Cranelift IR into target language",
"wasm" => "Compiles Wasm binary/text into Cranelift IR and then into target language",
"compile" => "Compiles Cranelift IR into target language",
_ => panic!("Invalid command"),
};

View File

@@ -1,7 +1,7 @@
//! CLI tool to use the functions provided by the [cranelift-wasm](../cranelift_wasm/index.html)
//! crate.
//!
//! Reads Wasm binary files, translates the functions' code to Cranelift IR.
//! Reads Wasm binary/text files, translates the functions' code to Cranelift IR.
#![cfg_attr(
feature = "cargo-clippy",
allow(too_many_arguments, cyclomatic_complexity)