mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 18:00:00 +08:00
Fix Grammar and Typo in Comments (#5284)
This commit is contained in:
@@ -19,7 +19,7 @@ const (
|
|||||||
var (
|
var (
|
||||||
// ErrInvalidMethod is an error that indicates not a valid http method.
|
// ErrInvalidMethod is an error that indicates not a valid http method.
|
||||||
ErrInvalidMethod = errors.New("not a valid http method")
|
ErrInvalidMethod = errors.New("not a valid http method")
|
||||||
// ErrInvalidPath is an error that indicates path is not start with /.
|
// ErrInvalidPath is an error that indicates path does not start with /.
|
||||||
ErrInvalidPath = errors.New("path must begin with '/'")
|
ErrInvalidPath = errors.New("path must begin with '/'")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ Future _apiRequest(String method, String path, dynamic data,
|
|||||||
/// data: any request class that will be converted to json automatically
|
/// data: any request class that will be converted to json automatically
|
||||||
/// ok: is called when request succeeds
|
/// ok: is called when request succeeds
|
||||||
/// fail: is called when request fails
|
/// fail: is called when request fails
|
||||||
/// eventually: is always called until the nearby functions returns
|
/// eventually: is always called after the nearby function returns
|
||||||
Future apiPost(String path, dynamic data,
|
Future apiPost(String path, dynamic data,
|
||||||
{Map<String, String>? header,
|
{Map<String, String>? header,
|
||||||
Function(Map<String, dynamic>)? ok,
|
Function(Map<String, dynamic>)? ok,
|
||||||
@@ -146,7 +146,7 @@ Future _apiRequest(String method, String path, dynamic data,
|
|||||||
///
|
///
|
||||||
/// ok: is called when request succeeds
|
/// ok: is called when request succeeds
|
||||||
/// fail: is called when request fails
|
/// fail: is called when request fails
|
||||||
/// eventually: is always called until the nearby functions returns
|
/// eventually: is always called after the nearby function returns
|
||||||
Future apiGet(String path,
|
Future apiGet(String path,
|
||||||
{Map<String, String>? header,
|
{Map<String, String>? header,
|
||||||
Function(Map<String, dynamic>)? ok,
|
Function(Map<String, dynamic>)? ok,
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ type (
|
|||||||
syntax *SyntaxExpr
|
syntax *SyntaxExpr
|
||||||
}
|
}
|
||||||
|
|
||||||
// ParserOption defines an function with argument Parser
|
// ParserOption defines a function with argument Parser
|
||||||
ParserOption func(p *Parser)
|
ParserOption func(p *Parser)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user