style(encode): reword the negative-zero rationale comments
Assisted-by: GLM 5.3
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ func TestMarshalFloatSpecials(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMarshalFloatNormalizesNegativeZero(t *testing.T) {
|
||||
// TOML has no -0; the emitter must normalise negative zero to "0.0".
|
||||
// The output contract normalises negative zero to "0.0".
|
||||
type Cfg struct {
|
||||
Z float64 `toml:"z"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user