Repository: mgeisler/textwrap (language: rust)

Issue:
Set html_root_url
We should set the `html_root_url` attribute as per the [Rust API guidelines][1].

[1]: https://rust-lang-nursery.github.io/api-guidelines/documentation.html#c-html-root


Discussion / hints:

Fix patch:
diff --git a/Cargo.toml b/Cargo.toml
index 85407f75..15f188b5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "textwrap"
-version = "0.7.0"
+version = "0.7.0" # Remember to update html_root_url.
 authors = ["Martin Geisler <martin@geisler.net>"]
 description = """
 Textwrap is a small library for word wrapping, indenting, and
diff --git a/src/lib.rs b/src/lib.rs
index db37fbba..53f354a5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,6 +41,7 @@
 //!
 //! [unicode-width]: https://docs.rs/unicode-width/
 
+#![doc(html_root_url = "https://docs.rs/textwrap/0.7.0")]
 #![deny(missing_docs)]
 
 extern crate unicode_width;


Test patch: