Skip to content

Commit

Permalink
Merge pull request #78 from pawin/master
Browse files Browse the repository at this point in the history
Fix incorrect example in README.md
  • Loading branch information
Kittinun Vantasin committed Apr 21, 2016
2 parents 594cf75 + 9e4dad3 commit e30b8d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -474,14 +474,14 @@ val (request, response, result) = manager.request(Method.GET, "https://httpbin.o
``` Kotlin
inline fun <reified T> DbResponseInterceptor<T>() =
{ next: (Response) -> Response ->
{ res: Response ->
{ next: (Request, Response) -> Response ->
{ req: Request, res: Response ->
val db = DB.getInstance()
val instance = Parser.getInstance().parse(response.data, T::class)
val instance = Parser.getInstance().parse(res.data, T::class)
db.transaction {
it.copyToDB(instance)
}
next(t)
next(req, res)
}
}
Expand Down

0 comments on commit e30b8d2

Please sign in to comment.