[Groonga-commit] groonga/grnci at cb2cfdc [master] Update comments.

Back to archive index

Susumu Yata null+****@clear*****
Tue Jul 18 15:55:53 JST 2017


Susumu Yata	2017-07-18 15:55:53 +0900 (Tue, 18 Jul 2017)

  New Revision: cb2cfdc13032aea0deffdfab93e937c97f8917e8
  https://github.com/groonga/grnci/commit/cb2cfdc13032aea0deffdfab93e937c97f8917e8

  Message:
    Update comments.

  Modified files:
    v2/error.go

  Modified: v2/error.go (+3 -3)
===================================================================
--- v2/error.go    2017-07-11 18:22:59 +0900 (78da7ee)
+++ v2/error.go    2017-07-18 15:55:53 +0900 (2109072)
@@ -21,7 +21,7 @@ const (
 	UnknownError
 )
 
-// Name returns the name of the error code.
+// Name returns the name of the error code such as "AddressError".
 func (ec ErrorCode) Name() string {
 	switch ec {
 	case AddressError:
@@ -63,10 +63,10 @@ func (ec ErrorCode) MarshalJSON() ([]byte, error) {
 	return buf, nil
 }
 
-// ResultCode is a Groons result code.
+// ResultCode is a Groonga result code.
 type ResultCode int
 
-// Name returns the name of the result code.
+// Name returns the name of the result code such as "GRN_SUCCESS".
 func (rc ResultCode) Name() string {
 	switch rc {
 	case 0:
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index