Skip to content

Commit ce8e039

Browse files
yngvar-antonssonoleg-jukovec
authored andcommitted
doc: rename NewDatetime to MakeDatetime in comments
1 parent 76d4125 commit ce8e039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datetime/datetime.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ const (
101101
// [-12 * 60 * 60, 14 * 60 * 60].
102102
//
103103
// NOTE: Tarantool's datetime.tz value is picked from t.Location().String().
104-
// "Local" location is unsupported, see ExampleNewDatetime_localUnsupported.
104+
// "Local" location is unsupported, see ExampleMakeDatetime_localUnsupported.
105105
func MakeDatetime(t time.Time) (Datetime, error) {
106106
dt := Datetime{}
107107
seconds := t.Unix()
@@ -253,7 +253,7 @@ func datetimeEncoder(e *msgpack.Encoder, v reflect.Value) ([]byte, error) {
253253
zone := tm.Location().String()
254254
_, offset := tm.Zone()
255255
if zone != NoTimezone {
256-
// The zone value already checked in NewDatetime() or
256+
// The zone value already checked in MakeDatetime() or
257257
// UnmarshalMsgpack() calls.
258258
dt.tzIndex = int16(timezoneToIndex[zone])
259259
}

0 commit comments

Comments
 (0)