@@ -49,10 +49,11 @@ test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured
49
49
```
50
50
51
51
If the README or ` html_root_url ` is out of sync with the crate
52
- version, the tests fail. In this example, the version number in
53
- ` Cargo.toml ` has been changed to 0.2.0 while the ` README.md ` and
54
- ` html_root_url ` remain unchanged. The tests now fail and the
55
- problematic TOML code and attribute are shown:
52
+ version, the tests fail. In this example, the crate is called
53
+ ` your-crate ` and the version number in ` Cargo.toml ` has been changed
54
+ to 0.2.0 while the ` README.md ` and ` html_root_url ` still use 0.1.2.
55
+ The tests now fail and the problematic TOML code and attribute are
56
+ shown:
56
57
57
58
```
58
59
$ cargo test
@@ -69,15 +70,15 @@ failures:
69
70
Checking code blocks in README.md...
70
71
README.md (line 20) ... expected minor version 2, found 1 in
71
72
[dev-dependencies]
72
- version-sync = "0.1"
73
+ your-crate = "0.1"
73
74
74
75
thread 'test_readme_deps' panicked at 'dependency errors in README.md', tests/version-numbers.rs:6
75
76
note: Run with `RUST_BACKTRACE=1` for a backtrace.
76
77
77
78
---- test_html_root_url stdout ----
78
79
Checking doc attributes in src/lib.rs...
79
80
src/lib.rs ... expected minor version 2, found 1 in
80
- #![doc(html_root_url = "https://docs.rs/version-sync /0.1.3 ")]
81
+ #![doc(html_root_url = "https://docs.rs/your-crate /0.1.2 ")]
81
82
82
83
thread 'test_html_root_url' panicked at 'html_root_url errors in src/lib.rs', tests/version-numbers.rs:11
83
84
0 commit comments