Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add functionality to export doc strings on types #187

Merged
merged 14 commits into from
Feb 9, 2024
Prev Previous commit
Next Next commit
Make format_docs private
  • Loading branch information
escritorio-gustavo committed Feb 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2fd04d5138e18edc6797b3ca2ac19778da316a8d
2 changes: 1 addition & 1 deletion ts-rs/src/export.rs
Original file line number Diff line number Diff line change
@@ -181,7 +181,7 @@ where
}

/// Returns an unindented docstring that has a newline at the end if it has content.
pub fn format_docs(docs: &Vec<String>) -> String {
fn format_docs(docs: &Vec<String>) -> String {
match docs.is_empty() {
true => "".to_string(),
false => {
Loading