chore: fix some typos

Signed-off-by: oftenoccur <ezc5@sina.com>
This commit is contained in:
oftenoccur 2024-04-11 11:07:03 +08:00
parent 6461e842ab
commit c688ee28d9
No known key found for this signature in database
GPG key ID: 35F6FFA3D8BF4A39
3 changed files with 3 additions and 3 deletions

View file

@ -459,7 +459,7 @@ func compile(ctx context.Context, ms *xmain.State, plugins []d2plugin.Plugin, fs
if os.Getenv("D2_LSP_MODE") == "1" { if os.Getenv("D2_LSP_MODE") == "1" {
// only the parse result is needed if running d2 for lsp, // only the parse result is needed if running d2 for lsp,
// if this, "fails", the AST is still valid and can be sent // if this, "fails", the AST is still valid and can be sent
// to vscode extention // to vscode extension
ast, err := d2lib.Parse(ctx, string(input), opts) ast, err := d2lib.Parse(ctx, string(input), opts)
type LspOutputData struct { type LspOutputData struct {

View file

@ -100,7 +100,7 @@ running:
./ci/e2ereport.sh -delta ./ci/e2ereport.sh -delta
``` ```
This gives me a nice HMTL output of what the test expected vs what it got (this was a PR This gives me a nice HTML output of what the test expected vs what it got (this was a PR
fixing multi-byte character labels): fixing multi-byte character labels):
![screencapture-file-Users-alexanderwang-dev-alixander-d2-e2etests-out-e2e-report-html-2023-02-14-10_15_07](https://user-images.githubusercontent.com/3120367/218822836-bcc517f2-ae3e-4e0d-83f6-2cbaa2fd9275.png) ![screencapture-file-Users-alexanderwang-dev-alixander-d2-e2etests-out-e2e-report-html-2023-02-14-10_15_07](https://user-images.githubusercontent.com/3120367/218822836-bcc517f2-ae3e-4e0d-83f6-2cbaa2fd9275.png)

View file

@ -23,7 +23,7 @@ I just forgot my whole philosophy of life!!!: {
} }
// TestChanges makes it explicit in PRs when encoding changes // TestChanges makes it explicit in PRs when encoding changes
// Something we might want to know for playground compatability // Something we might want to know for playground compatibility
func TestChanges(t *testing.T) { func TestChanges(t *testing.T) {
// Choose something with many keywords and varied text // Choose something with many keywords and varied text
const script = `timeline mixer: "" { const script = `timeline mixer: "" {