瀏覽代碼

Apply change to Stream.PropertyKey

Marcin Krzyżanowski 9 年之前
父節點
當前提交
6aaa53c517
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CryptoSwift.playground/Contents.swift

+ 1 - 1
CryptoSwift.playground/Contents.swift

@@ -86,7 +86,7 @@ do {
     }
 
     // print result
-    if let ciphertext = outputStream.property(forKey: Stream.PropertyKey.dataWrittenToMemoryStreamKey.rawValue) as? Data {
+    if let ciphertext = outputStream.property(forKey: Stream.PropertyKey(rawValue: Stream.PropertyKey.dataWrittenToMemoryStreamKey.rawValue)) as? Data {
         print("Encrypted stream data: \(ciphertext.toHexString())")
     }