소스 검색

Merge pull request #58 from tomaskraina/master

Add a message to @deprecated attribute to make it less confusing. Fixes #50
Marcin Krzyzanowski 10 년 전
부모
커밋
4f9675442f
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