Skip to content

Commit

Permalink
Revert Path change
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Coffman <steve@khanacademy.org>
  • Loading branch information
StevenACoffman committed Sep 7, 2023
1 parent c0a44fb commit 30c03ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ type PathElement interface {
var _ PathElement = PathIndex(0)
var _ PathElement = PathName("")

func (path *Path) String() string {
func (path Path) String() string {
if path == nil {
return ""
}
var str bytes.Buffer
for i, v := range *path {
for i, v := range path {
switch v := v.(type) {
case PathIndex:
str.WriteString(fmt.Sprintf("[%d]", v))
Expand Down

0 comments on commit 30c03ac

Please sign in to comment.