summaryrefslogtreecommitdiff
path: root/js.go
diff options
context:
space:
mode:
authorYURII D. <gkhelloworld@gmail.com>2024-07-27 09:57:59 +0300
committerGitHub <noreply@github.com>2024-07-27 08:57:59 +0200
commit54a8ea0bc36d6bb401b942bb2644c316c55c4ff9 (patch)
tree8fac99fa9234fa13c9d9150a9f898a9a5d06a4e4 /js.go
parent7b5da87f927503f2120b882dea0fc7d927c227e0 (diff)
Update js.go (#71)
typographical error
Diffstat (limited to 'js.go')
-rw-r--r--js.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/js.go b/js.go
index db2c261..3b8ec20 100644
--- a/js.go
+++ b/js.go
@@ -164,7 +164,7 @@ func scrape(vm *goja.Runtime) (ScrapeFunc, error) {
scrapefn, ok := defaultfn.Export().(func(goja.FunctionCall) goja.Value)
if !ok {
- return nil, errors.New("failed to export scrape funtion")
+ return nil, errors.New("failed to export scrape function")
}
return func(p ScrapeParams) (any, error) {