From 7f50535908c4ef275cc8c9bf98a75b5444d5832f Mon Sep 17 00:00:00 2001 From: gouguoyin <245629560@qq.com> Date: Tue, 3 May 2022 13:44:40 +0800 Subject: [PATCH] 2.1.6 fix syntax errors --- traveler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traveler.go b/traveler.go index a2649b3..c3b7a42 100755 --- a/traveler.go +++ b/traveler.go @@ -507,10 +507,10 @@ func (c Carbon) AddNanosecond() Carbon { return c.AddNanoseconds(1) } -// SubNanoseconds subtracts some nanosecond. +// SubNanoseconds subtracts some nanoseconds. // N纳秒前 -func (c Carbon) SubNanoseconds(nanosecond int) Carbon { - return c.AddNanoseconds(-nanosecond) +func (c Carbon) SubNanoseconds(nanoseconds int) Carbon { + return c.AddNanoseconds(-nanoseconds) } // SubNanosecond subtracts one nanosecond.