From e504aca6d090919b3550bc0816a37c3b8d6bc717 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Wed, 1 Mar 2023 15:49:47 -0800 Subject: [PATCH] comment --- d2ir/compile.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/d2ir/compile.go b/d2ir/compile.go index b6035cb46..9b50fd16c 100644 --- a/d2ir/compile.go +++ b/d2ir/compile.go @@ -179,6 +179,8 @@ func (c *compiler) compileLink(refctx *RefContext) { // Resolve underscores for len(linkIDA) > 0 && linkIDA[0] == "_" { if len(scopeIDA) < 2 { + // IR compiler only validates bad underscore usage + // The compiler will validate if the target board actually exists c.errorf(refctx.Key.Key, "linked board not found") return }