Skip to content

Commit

Permalink
Actually use newlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyaherbert committed Sep 28, 2021
1 parent 94d7173 commit a168606
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core_lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ fn parse_root_from_pairs<'sc>(
Rule::docstring => {
let docstring = decl_inner.as_str().to_string().split_off(3);
let docstring = docstring.as_str().trim();
unassigned_docstring.push_str("/n");
unassigned_docstring.push_str("\n");
unassigned_docstring.push_str(docstring);
}
_ => {
Expand Down
2 changes: 1 addition & 1 deletion core_lang/src/parse_tree/code_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<'sc> CodeBlock<'sc> {
let parts = decl_inner.clone().into_inner();
let docstring = parts.as_str().to_string().split_off(3);
let docstring = docstring.as_str().trim();
unassigned_docstring.push_str("/n");
unassigned_docstring.push_str("\n");
unassigned_docstring.push_str(docstring);
None
}
Expand Down
2 changes: 1 addition & 1 deletion core_lang/src/parse_tree/declaration/enum_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<'sc> EnumVariant<'sc> {
Rule::docstring => {
let docstring = field.as_str().to_string().split_off(3);
let docstring = docstring.as_str().trim();
unassigned_docstring.push_str("/n");
unassigned_docstring.push_str("\n");
unassigned_docstring.push_str(docstring);
i = i + 1;
}
Expand Down
2 changes: 1 addition & 1 deletion core_lang/src/parse_tree/declaration/struct_declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl<'sc> StructField<'sc> {
Rule::docstring => {
let docstring = field.as_str().to_string().split_off(3);
let docstring = docstring.as_str().trim();
unassigned_docstring.push_str("/n");
unassigned_docstring.push_str("\n");
unassigned_docstring.push_str(docstring);
i = i + 1;
}
Expand Down

0 comments on commit a168606

Please sign in to comment.