Skip to content

Commit 157e291

Browse files
Fixed typos in DatastoreDescriptor documentation
1 parent edefb10 commit 157e291

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/CodableDatastore/Datastore/DatastoreDescriptor.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Foundation
1414
public struct DatastoreDescriptor: Codable, Equatable, Hashable {
1515
/// The version that was current at time of serialization.
1616
///
17-
/// If a ``Datastore`` cannot decode this version, the datastore is presumed innaccessible, and any reads or writes will fail.
17+
/// If a ``Datastore`` cannot decode this version, the datastore is presumed inaccessible, and any reads or writes will fail.
1818
public var version: Data
1919

2020
/// The main type the ``Datastore`` serves.
@@ -29,16 +29,16 @@ public struct DatastoreDescriptor: Codable, Equatable, Hashable {
2929

3030
/// The direct indexes the ``Datastore`` uses.
3131
///
32-
/// Direct indexes duplicate the entire instance in their entries, which is useful for quick ranged reads. The identifier is implicitely a direct index, though other properties may also be used should they be applicable.
32+
/// Direct indexes duplicate the entire instance in their entries, which is useful for quick ranged reads. The identifier is implicitly a direct index, though other properties may also be used should they be applicable.
3333
///
34-
/// If the index produces the same value, the identifier of the instance is implicitely used as a secondary sort parameter.
34+
/// If the index produces the same value, the identifier of the instance is implicitly used as a secondary sort parameter.
3535
public var directIndexes: [String : IndexDescriptor]
3636

3737
/// The secondary indexes the ``Datastore`` uses.
3838
///
3939
/// Secondary indexes store just the value being indexed, and point to the object in the primary datastore.
4040
///
41-
/// If the index produces the same value, the identifier of the instance is implicitely used as a secondary sort parameter.
41+
/// If the index produces the same value, the identifier of the instance is implicitly used as a secondary sort parameter.
4242
public var secondaryIndexes: [String : IndexDescriptor]
4343

4444
/// The number of instances the ``Datastore`` manages.
@@ -52,7 +52,7 @@ extension DatastoreDescriptor {
5252
public struct IndexDescriptor: Codable, Equatable, Hashable, Comparable {
5353
/// The version that was first used to persist an index to disk.
5454
///
55-
/// This is used to determine if an index must be re-built purely because something about how the index changed in a way that could not be automatically determined, sunce as Codable conformance changing.
55+
/// This is used to determine if an index must be re-built purely because something about how the index changed in a way that could not be automatically determined, such as Codable conformance changing.
5656
public var version: Data
5757

5858
/// The key this index is based on.
@@ -74,7 +74,7 @@ extension DatastoreDescriptor {
7474
extension DatastoreDescriptor {
7575
/// Initialize a descriptor from types a ``Datastore`` deals in directly.
7676
///
77-
/// This will use Swift reflection to inder the indexable properties from those that use the @``Indexed`` property wrapper.
77+
/// This will use Swift reflection to infer the indexable properties from those that use the @``Indexed`` property wrapper.
7878
///
7979
/// - Parameters:
8080
/// - version: The current version being used by a data store.

0 commit comments

Comments
 (0)