Skip to content

Commit a1cefd8

Browse files
committed
Fix typo
1 parent 417a409 commit a1cefd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/basic/times/time_format_datetime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func FormatDateTime() error {
3232

3333
output.Stdoutf("[UTC ]", "%v\n", now.UTC())
3434
output.Stdoutf("[JST ]", "%v\n", jst)
35-
output.Stdoutf("[time.DateTime]", "%s\n", time.DateTime)
35+
output.Stdoutf("[time.DateOnly]", "%s\n", time.DateTime)
3636
output.Stdoutf("[time.Format ]", "%s\n", jst.Format(time.DateTime))
3737

3838
return nil

examples/basic/times/time_format_timeonly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func FormatTimeOnly() error {
3232

3333
output.Stdoutf("[UTC ]", "%v\n", now.UTC())
3434
output.Stdoutf("[JST ]", "%v\n", jst)
35-
output.Stdoutf("[time.DateTime]", "%s\n", time.TimeOnly)
35+
output.Stdoutf("[time.TimeOnly]", "%s\n", time.TimeOnly)
3636
output.Stdoutf("[time.Format ]", "%s\n", jst.Format(time.TimeOnly))
3737

3838
return nil

0 commit comments

Comments
 (0)