Skip to content

Commit

Permalink
doc (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian authored Nov 2, 2023
1 parent a7fe625 commit 0958a62
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
10 changes: 8 additions & 2 deletions core/src/ast/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,23 @@ impl Docs {
if rust_link.display == RustLinkDisplay::Compact {
has_compact = true;
} else if rust_link.display == RustLinkDisplay::Normal {
if !lines.is_empty() {
write!(lines, "\n\n").unwrap();
}
write!(
lines,
"\n\nSee the [Rust documentation for {backtick}{name}{backtick}]({link}) for more information.",
"See the [Rust documentation for {backtick}{name}{backtick}]({link}) for more information.",
name = rust_link.path.elements.last().unwrap(),
link = docs_url_gen.gen_for_rust_link(rust_link)
)
.unwrap();
}
}
if has_compact {
write!(lines, "\n\n Additional information: ").unwrap();
if !lines.is_empty() {
write!(lines, "\n\n").unwrap();
}
write!(lines, "Additional information: ").unwrap();
for (i, rust_link) in self
.1
.iter()
Expand Down
2 changes: 0 additions & 2 deletions example/cpp/include/ICU4XDataProvider.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions example/cpp/include/ICU4XFixedDecimal.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions feature_tests/cpp/include/Opaque.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions feature_tests/dotnet/Lib/Generated/Opaque.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions feature_tests/dotnet/Lib/Generated/RawOpaque.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0958a62

Please sign in to comment.