浏览代码

Add a message to @deprecated attribute to make it less confusing. Fixes #50.

Tomas Kraina 10 年之前
父节点
当前提交
f2970b59fa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CryptoSwift/Generics.swift

+ 1 - 1
CryptoSwift/Generics.swift

@@ -36,7 +36,7 @@ func integerFromBitsArray<T: UnsignedIntegerType>(bits: [Bit]) -> T
 
 /// Initialize integer from array of bytes.
 /// I found this method slow
-@availability(*, deprecated=0.8)
+@availability(*, deprecated=0.8, message="Deprecated but replacement is not yet available.")
 func integerWithBytes<T: IntegerType>(bytes: [UInt8]) -> T {
     var totalBytes = Swift.min(bytes.count, sizeof(T))
     // get slice of Int