Skip to content

Commit 20964e4

Browse files
fix: add rustdoc
1 parent 42ae589 commit 20964e4

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Rust for Web <info@rustforweb.org>"]
55
edition = "2024"
66
license = "MIT"
77
repository = "https://github.com/RustForWeb/constant-string"
8-
version = "0.0.1"
8+
version = "0.0.2"
99

1010
[package.metadata.docs.rs]
1111
all-features = true

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ macro_rules! constant_string {
4949
#[macro_export]
5050
macro_rules! constant_string_base {
5151
($name:ident, $code_name:ident, $code:literal) => {
52+
#[doc = concat!("Constant for [`", stringify!($name), "`].")]
5253
const $code_name: &str = $code;
5354

55+
#[doc = concat!("Constant string `", stringify!($code), "`.")]
5456
#[derive(Eq, PartialEq)]
5557
pub struct $name;
5658

0 commit comments

Comments
 (0)