summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/page/page_matcher.go2
-rw-r--r--resources/resource_factories/create/remote.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/page/page_matcher.go b/resources/page/page_matcher.go
index dc23b13bb..15b8ede89 100644
--- a/resources/page/page_matcher.go
+++ b/resources/page/page_matcher.go
@@ -70,7 +70,7 @@ func (m PageMatcher) Matches(p Page) bool {
return true
}
-// DecodeCascade decodes in which could be eiter a map or a slice of maps.
+// DecodeCascade decodes in which could be either a map or a slice of maps.
func DecodeCascade(in any) (map[PageMatcher]maps.Params, error) {
m, err := maps.ToSliceStringMap(in)
if err != nil {
diff --git a/resources/resource_factories/create/remote.go b/resources/resource_factories/create/remote.go
index 0ca2be834..0beb87195 100644
--- a/resources/resource_factories/create/remote.go
+++ b/resources/resource_factories/create/remote.go
@@ -125,7 +125,7 @@ func (c *Client) FromRemote(uri string, optionsm map[string]any) (resource.Resou
}
}
- // Look for a file extention. If it's .txt, look for a more specific.
+ // Look for a file extension. If it's .txt, look for a more specific.
if extensionHints == nil || extensionHints[0] == ".txt" {
if ext := path.Ext(filename); ext != "" {
extensionHints = []string{ext}