mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 15:10:01 +08:00
Fix Grammar and Typo in Comments (#5284)
This commit is contained in:
@@ -19,7 +19,7 @@ const (
|
||||
var (
|
||||
// ErrInvalidMethod is an error that indicates 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 '/'")
|
||||
)
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ Future _apiRequest(String method, String path, dynamic data,
|
||||
/// data: any request class that will be converted to json automatically
|
||||
/// ok: is called when request succeeds
|
||||
/// 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,
|
||||
{Map<String, String>? header,
|
||||
Function(Map<String, dynamic>)? ok,
|
||||
@@ -146,7 +146,7 @@ Future _apiRequest(String method, String path, dynamic data,
|
||||
///
|
||||
/// ok: is called when request succeeds
|
||||
/// 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,
|
||||
{Map<String, String>? header,
|
||||
Function(Map<String, dynamic>)? ok,
|
||||
|
||||
@@ -28,7 +28,7 @@ type (
|
||||
syntax *SyntaxExpr
|
||||
}
|
||||
|
||||
// ParserOption defines an function with argument Parser
|
||||
// ParserOption defines a function with argument Parser
|
||||
ParserOption func(p *Parser)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user