Skip to content

Commit

Permalink
Primitive Types: change Slice to RandomAccessSlice at append
Browse files Browse the repository at this point in the history
Related: attaswift#9
  • Loading branch information
pavel-ismailov committed Oct 15, 2019
1 parent 6b23224 commit 2432f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SipHash/Primitive Types.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension SipHasher {
/// Add the contents of `slice` to this hash.
///
/// - Requires: `finalize()` hasn't been called on this instance yet.
public mutating func append(_ slice: Slice<UnsafeRawBufferPointer>) {
public mutating func append(_ slice: RandomAccessSlice<UnsafeRawBufferPointer>) {
self.append(UnsafeRawBufferPointer(rebasing: slice))
}

Expand Down

0 comments on commit 2432f90

Please sign in to comment.