Skip to content

Commit

Permalink
Merge pull request #23 from renaudjenny/fix-few-typos-in-htmlrenderer
Browse files Browse the repository at this point in the history
fix(HTMLRenderer): fix few typos in comments
  • Loading branch information
MatsMoll authored Aug 31, 2020
2 parents c4b9749 + db3fb96 commit 5dd85b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/HTMLKit/HTMLRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public protocol HTMLRenderable {
func render<T: HTMLPage>(raw type: T.Type) throws -> String
}

/// A struct containing the differnet formulas for the different views.
/// A struct containing the different formulas for the different views.
///
/// try renderer.add(template: WelcomeView()) // Builds the formula
/// try renderer.render(WelcomeView.self) // Renders the formula
Expand Down Expand Up @@ -174,11 +174,11 @@ public class HTMLRenderer: HTMLRenderable {
lingo = try Lingo(rootPath: path, defaultLocale: defaultLocale)
}

/// Manage the differnet contexts
/// Manage the different contexts
/// This will remove the generic type in the render call
public class ContextManager<Context> {

/// The different context varaibles used when rendering
/// The different context variables used when rendering
var contexts: [String: Any]

/// The lingo object that is needed to use localization
Expand Down

0 comments on commit 5dd85b4

Please sign in to comment.