Skip to content

Commit

Permalink
fix(lang): compute func example name correctly (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
princjef authored Nov 12, 2021
1 parent 4f6490e commit 4fbf40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/func.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (fn *Func) Examples() (examples []*Example) {
case example.Name == fullName:
name = ""
case strings.HasPrefix(example.Name, underscorePrefix):
name = underscorePrefix[len(underscorePrefix):]
name = example.Name[len(underscorePrefix):]
default:
// TODO: better filtering
continue
Expand Down

0 comments on commit 4fbf40f

Please # to comment.