Skip to content

Commit

Permalink
More typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kate-osborn committed Sep 26, 2024
1 parent 45c86b2 commit 8979e48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/mode/static/nginx/config/includes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

// createIncludeExecuteResultsFromServers creates a list of executeResults -- or NGINX config files -- from all
// the includes in the provided servers. Since there may be duplicate includes, such as configuration for policies that
// apply to multiple route, or snippets filters that are attached to multiple routing rules, this function deduplicates
// apply to multiple routes, or snippets filters that are attached to multiple routing rules, this function deduplicates
// all includes, ensuring only a single file per unique include is generated.
func createIncludeExecuteResultsFromServers(servers []http.Server) []executeResult {
uniqueIncludes := make(map[string][]byte)
Expand Down Expand Up @@ -141,7 +141,7 @@ func createIncludesFromSnippets(snippets []dataplane.Snippet) []shared.Include {
return deduplicateIncludes(includes)
}

// createIncludeExecuteResults creates a list of executeResult -- or NGINX config files -- from a list of includes.
// createIncludeExecuteResults creates a list of executeResults -- or NGINX config files -- from a list of includes.
// Used for main and http snippets only. Server and location snippets are handled by other functions above.
func createIncludeExecuteResults(includes []shared.Include) []executeResult {
results := make([]executeResult, 0, len(includes))
Expand Down
2 changes: 1 addition & 1 deletion internal/mode/static/state/dataplane/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type HTTPFilters struct {
}

// SnippetsFilter holds the location and server snippets in a SnippetsFilter.
// The main and http snippets are store separately in Configuration.MainSnippets and BaseHTTPConfig.Snippets.
// The main and http snippets are stored separately in Configuration.MainSnippets and BaseHTTPConfig.Snippets.
type SnippetsFilter struct {
// LocationSnippet holds the snippet for the location context.
LocationSnippet *Snippet
Expand Down

0 comments on commit 8979e48

Please sign in to comment.