Skip to content

Commit

Permalink
fix(HTMLRenderer): fix few typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudjenny committed Aug 28, 2020
1 parent c4b9749 commit db3fb96
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 db3fb96

Please sign in to comment.