From db3fb96e216e33930201b5a0158d775bf3f95ce0 Mon Sep 17 00:00:00 2001 From: Renaud Jenny Date: Fri, 28 Aug 2020 20:17:47 +0100 Subject: [PATCH] fix(HTMLRenderer): fix few typos in comments --- Sources/HTMLKit/HTMLRenderer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/HTMLKit/HTMLRenderer.swift b/Sources/HTMLKit/HTMLRenderer.swift index 4e95f2c3..c58e6d7f 100644 --- a/Sources/HTMLKit/HTMLRenderer.swift +++ b/Sources/HTMLKit/HTMLRenderer.swift @@ -40,7 +40,7 @@ public protocol HTMLRenderable { func render(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 @@ -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 { - /// 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