From 8ebcba2782e59d32c26c34456b9768aed6fe7d69 Mon Sep 17 00:00:00 2001 From: "Mike O. Abidakun" Date: Wed, 21 Oct 2015 23:38:48 +0100 Subject: [PATCH] Fixes syntax error in strings used to initialise CGSize instances with CGSizeFromString function. --- .../posts/2015-10-17-advanced-practical-enum-examples.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/posts/2015-10-17-advanced-practical-enum-examples.org b/resources/posts/2015-10-17-advanced-practical-enum-examples.org index b47ca1d..75401ea 100644 --- a/resources/posts/2015-10-17-advanced-practical-enum-examples.org +++ b/resources/posts/2015-10-17-advanced-practical-enum-examples.org @@ -803,10 +803,10 @@ Now, we can write our =enum=, with one downside though: The initial values have #+BEGIN_SRC swift :noweb-ref cgsizeenum2 :prologue "import Foundation" enum Devices: CGSize { - case iPhone3GS = "320, 480" - case iPhone5 = "320, 568" - case iPhone6 = "375, 667" - case iPhone6Plus = "414, 736" + case iPhone3GS = "{320, 480}" + case iPhone5 = "{320, 568}" + case iPhone6 = "{375, 667}" + case iPhone6Plus = "{414, 736}" } #+END_SRC