From b26786259f13b8a83eaff0ac46dd052c18960df5 Mon Sep 17 00:00:00 2001 From: Tualatrix Chou Date: Tue, 29 Jan 2019 22:00:43 +0800 Subject: [PATCH] Fix build on Xcode 10.2 beta --- Sources/NodeSet.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/NodeSet.swift b/Sources/NodeSet.swift index 36d5247..95f7090 100644 --- a/Sources/NodeSet.swift +++ b/Sources/NodeSet.swift @@ -74,7 +74,7 @@ open class NodeSet: Collection { - returns: the idx'th node, nil if out of range */ open subscript(_ idx: Index) -> XMLElement { - _precondition(idx >= startIndex && idx < endIndex, "Index of out bound") + precondition(idx >= startIndex && idx < endIndex, "Index of out bound") return XMLElement(cNode: (cNodeSet!.pointee.nodeTab[idx])!, document: document) }