Fix Grammar and Typo in Comments (#5284)

This commit is contained in:
Gregor Fischer
2025-11-20 14:26:50 +01:00
committed by GitHub
parent 29b65e12c1
commit 72dd970969
3 changed files with 4 additions and 4 deletions

View File

@@ -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 '/'")
) )

View File

@@ -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,

View File

@@ -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)
) )