Skip to content

Commit

Permalink
fix doc generate
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Aug 22, 2021
1 parent 57f0692 commit ecb8d2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shadow-rs"
version = "0.6.12"
version = "0.6.13"
authors = ["baoyachi <[email protected]>"]
edition = "2018"
description = "A build-time information stored in your rust project"
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,18 +355,18 @@ impl Shadow {

fn gen_header(&self) -> SdResult<()> {
let desc = format!(
r#"/// Code generated by shadow-rs generator. DO NOT EDIT.
/// Author by:https://www.github.com/baoyachi
/// The build script repository:https://github.com/baoyachi/shadow-rs
/// Create time by:{}"#,
r#"// Code generated by shadow-rs generator. DO NOT EDIT.
// Author by:https://www.github.com/baoyachi
// The build script repository:https://github.com/baoyachi/shadow-rs
// Create time by:{}"#,
BuildTime::Local(Local::now()).human_format()
);
writeln!(&self.f, "{}\n\n", desc)?;
Ok(())
}

fn write_const(&mut self, shadow_const: ShadowConst, val: ConstVal) -> SdResult<()> {
let desc = format!("/// {}", val.desc);
let desc = format!("#[doc=r#\"{}\"#]", val.desc);

let define = match val.t {
ConstType::OptStr => format!(
Expand Down

0 comments on commit ecb8d2c

Please sign in to comment.