Skip to content

Commit

Permalink
typescript: fix enumerated comment descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtarua committed Aug 22, 2024
1 parent 753eb34 commit eb5b8e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasn-compiler/src/generator/typescript/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ impl Typescript {
.into_iter()
.fold(String::new(), |mut acc, en| {
acc.push_str(&format!(
r#"{}{} = "{}",
r#"{} = "{}", {}
"#,
en.description.map_or(String::default(), |d| d + "\n"),
to_jer_identifier(&en.name),
en.name,
en.description.map_or(String::default(), |d| format!("//{}", d)),
));
acc
}),
Expand Down

0 comments on commit eb5b8e7

Please sign in to comment.