From b83bec566a43c17c547b7b018327046aa7f83974 Mon Sep 17 00:00:00 2001 From: Emily Toop Date: Tue, 24 Apr 2018 13:23:46 +0100 Subject: [PATCH] Swift doc typo fixes --- sdks/swift/Mentat/Mentat/Extensions/Date+Int64.swift | 12 +++++++++--- sdks/swift/Mentat/Mentat/Mentat.swift | 2 +- sdks/swift/Mentat/Mentat/Query/Query.swift | 2 +- sdks/swift/Mentat/Mentat/Transact/TxReport.swift | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sdks/swift/Mentat/Mentat/Extensions/Date+Int64.swift b/sdks/swift/Mentat/Mentat/Extensions/Date+Int64.swift index a292d47c..068c666b 100644 --- a/sdks/swift/Mentat/Mentat/Extensions/Date+Int64.swift +++ b/sdks/swift/Mentat/Mentat/Extensions/Date+Int64.swift @@ -1,6 +1,12 @@ -///* This Source Code Form is subject to the terms of the Mozilla Public -// * License, v. 2.0. If a copy of the MPL was not distributed with this -// * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +/* Copyright 2018 Mozilla + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use + * this file except in compliance with the License. You may obtain a copy of the + * License at http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software distributed + * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR + * CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. */ import Foundation diff --git a/sdks/swift/Mentat/Mentat/Mentat.swift b/sdks/swift/Mentat/Mentat/Mentat.swift index 43dacb5c..5dd6fe66 100644 --- a/sdks/swift/Mentat/Mentat/Mentat.swift +++ b/sdks/swift/Mentat/Mentat/Mentat.swift @@ -15,7 +15,7 @@ import MentatStore typealias Entid = Int64 /** - Protocol to be implemenented by any object that wishes to register for transaction observation + Protocol to be implemented by any object that wishes to register for transaction observation */ protocol Observing { func transactionDidOccur(key: String, reports: [TxChange]) diff --git a/sdks/swift/Mentat/Mentat/Query/Query.swift b/sdks/swift/Mentat/Mentat/Query/Query.swift index 883e9ea6..7521b022 100644 --- a/sdks/swift/Mentat/Mentat/Query/Query.swift +++ b/sdks/swift/Mentat/Mentat/Query/Query.swift @@ -13,7 +13,7 @@ import MentatStore /** - This class allows you to contruct a query, bind values to variables and run those queries against a mentat DB. + This class allows you to construct a query, bind values to variables and run those queries against a mentat DB. This class cannot be created directly, but must be created through `Mentat.query(String:)`. diff --git a/sdks/swift/Mentat/Mentat/Transact/TxReport.swift b/sdks/swift/Mentat/Mentat/Transact/TxReport.swift index 8d0d2528..8658158d 100644 --- a/sdks/swift/Mentat/Mentat/Transact/TxReport.swift +++ b/sdks/swift/Mentat/Mentat/Transact/TxReport.swift @@ -42,7 +42,7 @@ class TxReport: RustObject { } /** - Access an `Entid` for a temporary identifier that was provided in the transaction can be done through `entid(String:)`. + Access an `Entid` for a temporary identifier that was provided in the transaction. - Parameter tempId: A `String` representing the temporary identifier to fetch the `Entid` for.