From 948c176ece7c04d2f01e93e2410f2d2b004f6211 Mon Sep 17 00:00:00 2001 From: Bernard Xie Date: Tue, 14 Feb 2023 17:44:26 -0800 Subject: [PATCH] better comment --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 53bf6cfa1..0d6926d86 100644 --- a/main.go +++ b/main.go @@ -364,7 +364,7 @@ func renderPDF(ctx context.Context, ms *xmain.State, plugin d2plugin.Plugin, ske } var currBoardPath []string - // is root board + // Root board doesn't have a name, so we use the output filename if diagram.Name == "" { ext := filepath.Ext(outputPath) trimmedPath := strings.TrimSuffix(outputPath, ext)