Skip to content

Commit fb532cf

Browse files
committed
Update
1 parent 180ee3a commit fb532cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basic/templates/txttmpl/missingkey.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
// MissingKey -- text/template の missingkey=zero オプション指定時のサンプルです。
1010
//
1111
// Template.Option("missingkey=zero")の設定を行い、テンプレートに対して map[string]any をデータとして指定した場合
12-
// キーに対応する値が nil の場合、"<no value>" と表示されることに注意。(マップの値の方の方がanyのため)
12+
// キーが存在しないの場合、"<no value>" と表示されることに注意。(マップの値の方の方がanyのため)
1313
//
1414
// 当然、any以外の場合はその型のゼロ値となる。
1515
//

0 commit comments

Comments
 (0)