Skip to content

Commit 22ff87b

Browse files
committed
docs: Add examples of custom field types
1 parent 662f998 commit 22ff87b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ type RFC3339Type string
14641464
func (RFC3339Type) Layout() string {
14651465
return carbon.RFC3339Layout
14661466
}
1467-
// 实现 "carbon.DataTyper" 接口 (非必需)
1467+
// 实现 "carbon.DataTyper" 接口 (非必需,默认数据类型是 datetime)
14681468
func (RFC3339Type) DataType() string {
14691469
return "datetime"
14701470
}
@@ -1474,7 +1474,7 @@ type ISO8601Type string
14741474
func (ISO8601Type) Format() string {
14751475
return carbon.ISO8601Format
14761476
}
1477-
// 实现 "carbon.DataTyper" 接口 (非必需)
1477+
// 实现 "carbon.DataTyper" 接口 (非必需,默认数据类型是 datetime)
14781478
func (RFC3339Type) DataType() string {
14791479
return "datetime"
14801480
}

README.jp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ type RFC3339Type string
14591459
func (RFC3339Type) Layout() string {
14601460
return carbon.RFC3339Layout
14611461
}
1462-
// "carbon.DataTyper" インタフェースの実装(必須ではありません
1462+
// "carbon.DataTyper" インタフェースの実装(必須ではなく、デフォルトのデータ型は datetime
14631463
func (RFC3339Type) DataType() string {
14641464
return "datetime"
14651465
}
@@ -1469,7 +1469,7 @@ type ISO8601Type string
14691469
func (ISO8601Type) Format() string {
14701470
return carbon.ISO8601Format
14711471
}
1472-
// "carbon.DataTyper" インタフェースの実装(必須ではありません
1472+
// "carbon.DataTyper" インタフェースの実装(必須ではなく、デフォルトのデータ型は datetime
14731473
func (RFC3339Type) DataType() string {
14741474
return "datetime"
14751475
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ type RFC3339Type string
14561456
func (RFC3339Type) Layout() string {
14571457
return carbon.RFC3339Layout
14581458
}
1459-
// implement "carbon.DataTyper" interface (not required)
1459+
// implement "carbon.DataTyper" interface (not required, default data type is datetime)
14601460
func (RFC3339Type) DataType() string {
14611461
return "datetime"
14621462
}
@@ -1466,7 +1466,7 @@ type ISO8601Type string
14661466
func (ISO8601Type) Format() string {
14671467
return carbon.ISO8601Format
14681468
}
1469-
// implement "carbon.DataTyper" interface (not required)
1469+
// implement "carbon.DataTyper" interface (not required, default data type is datetime)
14701470
func (RFC3339Type) DataType() string {
14711471
return "datetime"
14721472
}

0 commit comments

Comments
 (0)