minigrep_xiaoai

Crates.iominigrep_xiaoai
lib.rsminigrep_xiaoai
version0.1.1
sourcesrc
created_at2024-10-13 08:46:55.683566
updated_at2024-10-13 08:51:13.229266
description一个简单的命令行工具,用于在文件中搜索字符串。
homepage
repositoryhttps://github.com/rust-lang/cargo
max_upload_size
id1407176
size6,733
Ai Shuaikang (aishuaikang)

documentation

README

minigrep

minigrep 是一个简单的命令行工具,用于搜索文件中的文本。

例子

let query = "duct";
let contents = "\
Rust:
safe, fast, productive.
Pick three.
Duct tape.";

assert_eq!(vec!["safe, fast, productive."], minigrep::search(query, contents));
Commit count: 19121

cargo fmt