Skip to content

Commit

Permalink
More docs on what versioned means
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Sep 8, 2024
1 parent c224ba7 commit 166f022
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/RangeState/Versioned.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ extension Versioned: Hashable where Version : Hashable, Value : Hashable {}

public typealias VersionedRange<Version> = Versioned<Version, NSRange>

/// Describes a linear span of content that can be changed over time.
///
/// This can be used to model text storage. If your backing store supports versioning, this can be used to improve efficiency.
public protocol VersionedContent<Version> {
associatedtype Version: Equatable & Sendable

Expand Down

0 comments on commit 166f022

Please sign in to comment.