Skip to content

Commit

Permalink
docs: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Nov 26, 2023
1 parent e57cfc8 commit 69ae626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions pkg/symbol/symbol.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ type (
}
)

var _ node.Node = (*Symbol)(nil)

// ID returns the unique identifier of the Symbol, based on its Node.
func (s *Symbol) ID() ulid.ULID {
return s.Node.ID()
Expand Down
4 changes: 2 additions & 2 deletions pkg/symbol/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type (
}
)

// NewTable creates a new SymbolTable with the specified options.
// NewTable returns a new SymbolTable with the specified options.
func NewTable(opts ...TableOptions) *Table {
var loadHooks []LoadHook
var unloadHooks []UnloadHook
Expand Down Expand Up @@ -293,7 +293,7 @@ func (t *Table) LookupByID(id ulid.ULID) (*Symbol, bool) {
return sym, ok
}

// LookupByID retrieves a Symbol by its namespace and name.
// LookupByName retrieves a Symbol by its namespace and name.
func (t *Table) LookupByName(namespace, name string) (*Symbol, bool) {
t.mu.RLock()
defer t.mu.RUnlock()

Check warning on line 299 in pkg/symbol/table.go

View check run for this annotation

Codecov / codecov/patch

pkg/symbol/table.go#L297-L299

Added lines #L297 - L299 were not covered by tests
Expand Down

0 comments on commit 69ae626

Please sign in to comment.