Add missing carets when dumping builtin list

This commit is contained in:
Niels Mündler 2023-02-02 16:01:50 +01:00 committed by Lucas
parent 0f6d2487ec
commit 700e9cab5b
1 changed files with 2 additions and 0 deletions

View File

@ -195,7 +195,9 @@ impl Constant {
.append(RcDoc::text(if *b { "True" } else { "False" })),
Constant::ProtoList(r#type, items) => RcDoc::text("list")
.append(RcDoc::line_())
.append(RcDoc::text("<"))
.append(r#type.to_doc())
.append(RcDoc::text(">"))
.append(RcDoc::line())
.append(RcDoc::text("["))
.append(RcDoc::intersperse(