|
|
@ -16,7 +16,7 @@ Rust 和 Cargo 有一些帮助它人更方便找到和使用你发布的包的
|
|
|
|
<span class="filename">文件名: src/lib.rs</span>
|
|
|
|
<span class="filename">文件名: src/lib.rs</span>
|
|
|
|
|
|
|
|
|
|
|
|
````rust,ignore
|
|
|
|
````rust,ignore
|
|
|
|
/// 将给定的数字加一
|
|
|
|
/// Adds one to the number given.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// # Examples
|
|
|
|
/// # Examples
|
|
|
|
///
|
|
|
|
///
|
|
|
@ -77,10 +77,10 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
|
|
|
|
```rust,ignore
|
|
|
|
```rust,ignore
|
|
|
|
//! # My Crate
|
|
|
|
//! # My Crate
|
|
|
|
//!
|
|
|
|
//!
|
|
|
|
//! `my_crate` 是一个使得特定计算更方便的
|
|
|
|
//! `my_crate` is a collection of utilities to make performing certain
|
|
|
|
//! 工具集合
|
|
|
|
//! calculations more convenient.
|
|
|
|
|
|
|
|
|
|
|
|
/// 将给定的数字加一。
|
|
|
|
/// Adds one to the number given.
|
|
|
|
// --snip--
|
|
|
|
// --snip--
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|