fix typos

This commit is contained in:
Ivan Smolin 2016-12-28 16:34:36 +03:00
parent fff115b2db
commit d705fd184e
5 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import Foundation
/// Enum which represents common errors in LeadKit framework
///
/// - failedToCastValue: attampt to cast was failed
/// - failedToCastValue: attempt to cast was failed
public enum LeadKitError: Error {
case failedToCastValue(expectedType: Any.Type, givenType: Any.Type)

View File

@ -25,7 +25,7 @@ public extension Reactive where Base: Alamofire.SessionManager {
headers: requestParameters.headers)
}
/// Method which executes request and serialize response into target object
/// Method which executes request and serializes response into target object
///
/// - Parameter requestParameters: api parameters to pass Alamofire
/// - Returns: Observable with HTTP URL Response and target object
@ -35,7 +35,7 @@ public extension Reactive where Base: Alamofire.SessionManager {
.flatMap { $0.rx.apiResponse() }
}
/// Method which executes request and serialize response into target object
/// Method which executes request and serializes response into target object
///
/// - Parameter requestParameters: api parameters to pass Alamofire
/// - Returns: Observable with HTTP URL Response and target object

View File

@ -13,7 +13,7 @@ import RxAlamofire
public extension Reactive where Base: DataRequest {
/// Method which serialize response into target object
/// Method which serializes response into target object
///
/// - Returns: Observable with HTTP URL Response and target object
func apiResponse<T: ImmutableMappable>() -> Observable<(HTTPURLResponse, T)> {
@ -24,7 +24,7 @@ public extension Reactive where Base: DataRequest {
}
}
/// Method which serialize response into target object
/// Method which serializes response into target object
///
/// - Returns: Observable with HTTP URL Response and target object
func apiResponse<T: ObservableMappable>() -> Observable<(HTTPURLResponse, T)> where T.ModelType == T {

View File

@ -8,7 +8,7 @@
import Foundation
/// Function which return string representation of type without ".Type" suffix
/// Function which returns string representation of type without ".Type" suffix
///
/// - Parameter type: a type
/// - Returns: string representation of type without ".Type" suffix

View File

@ -17,5 +17,5 @@ public protocol StaticViewHeightProtocol {
- returns: view height
*/
static func viewHeight() -> CGFloat
static var viewHeight: CGFloat { get }
}