1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-12 10:19:36 +00:00

update doc strings

This commit is contained in:
Nikolay Kim 2018-04-13 19:14:14 -07:00
parent 5140fea8d1
commit a5b5ff0894

View file

@ -559,6 +559,7 @@ enum InternalErrorType {
}
impl<T> InternalError<T> {
/// Create `InternalError` instance
pub fn new(cause: T, status: StatusCode) -> Self {
InternalError {
cause,
@ -567,6 +568,7 @@ impl<T> InternalError<T> {
}
}
/// Create `InternalError` with predefined `HttpResponse`
pub fn from_response(cause: T, response: HttpResponse) -> Self {
InternalError {
cause,