Skip to content

Commit 15cc498

Browse files
committed
Set html_root_url
1 parent ee04a5d commit 15cc498

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "proc-macro2"
3-
version = "0.1.10"
3+
version = "0.1.10" # remember to update html_root_url
44
authors = ["Alex Crichton <alex@alexcrichton.com>"]
55
license = "MIT/Apache-2.0"
66
readme = "README.md"

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
//! This'll allow immediate usage of the beneficial upstream API, particularly
2020
//! around preserving span information.
2121
22+
// Proc-macro2 types in rustdoc of other crates get linked to here.
23+
#![doc(html_root_url = "https://docs.rs/proc-macro2/0.1.10")]
24+
2225
#![cfg_attr(feature = "nightly", feature(proc_macro))]
2326

2427
extern crate proc_macro;

0 commit comments

Comments
 (0)