From dc11d26ea394d21dc6af2ee3e9736d8f6fee1fd9 Mon Sep 17 00:00:00 2001 From: Peleus <245629560@qq.com> Date: Fri, 26 Jan 2024 13:55:27 +0800 Subject: [PATCH] Modify annotation information --- calendar/julian/julian.go | 4 ++-- calendar/lunar/lunar.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/julian/julian.go b/calendar/julian/julian.go index 72c84087..970816bf 100644 --- a/calendar/julian/julian.go +++ b/calendar/julian/julian.go @@ -54,7 +54,7 @@ func NewJulian(f float64) (j Julian) { return } -// ToJulian Convert Gregorian calendar to Julian calendar. +// ToJulian converts Gregorian calendar to Julian calendar. // 将 公历 转化为 儒略历 func (g Gregorian) ToJulian() (j Julian) { if g.IsZero() { @@ -76,7 +76,7 @@ func (g Gregorian) ToJulian() (j Julian) { return NewJulian(jd) } -// ToGregorian Convert Julian calendar to Gregorian calendar. +// ToGregorian converts Julian calendar to Gregorian calendar. // 将 儒略历 转化为 公历 func (j Julian) ToGregorian() (g Gregorian) { if j.jd == 0 || j.mjd == 0 { diff --git a/calendar/lunar/lunar.go b/calendar/lunar/lunar.go index 5b33d799..0fd67cba 100644 --- a/calendar/lunar/lunar.go +++ b/calendar/lunar/lunar.go @@ -90,7 +90,7 @@ func NewLunar(year, month, day, hour, minute, second int, isLeapMonth bool) (l L return } -// ToLunar Convert Gregorian calendar to Lunar calendar. +// ToLunar converts Gregorian calendar to Lunar calendar. // 将 公历 转化为 农历 func (g Gregorian) ToLunar() (l Lunar) { daysInYear, daysInMonth, leapMonth := 365, 30, 0 @@ -141,7 +141,7 @@ func (g Gregorian) ToLunar() (l Lunar) { return } -// ToGregorian Convert Lunar calendar to Gregorian calendar. +// ToGregorian converts Lunar calendar to Gregorian calendar. // 将 农历 转化为 公历 func (l Lunar) ToGregorian() (g Gregorian) { if l.year < minYear || l.year > maxYear {