File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -74,17 +74,17 @@ func ExampleDuration_Truncate() {
74
74
}
75
75
76
76
for _ , t := range trunc {
77
- fmt .Printf ("t .Truncate(%6s) = %s\n " , t , d .Truncate (t ).String ())
77
+ fmt .Printf ("d .Truncate(%6s) = %s\n " , t , d .Truncate (t ).String ())
78
78
}
79
79
// Output:
80
- // t .Truncate( 1ns) = 1h15m30.918273645s
81
- // t .Truncate( 1µs) = 1h15m30.918273s
82
- // t .Truncate( 1ms) = 1h15m30.918s
83
- // t .Truncate( 1s) = 1h15m30s
84
- // t .Truncate( 2s) = 1h15m30s
85
- // t .Truncate( 1m0s) = 1h15m0s
86
- // t .Truncate( 10m0s) = 1h10m0s
87
- // t .Truncate(1h0m0s) = 1h0m0s
80
+ // d .Truncate( 1ns) = 1h15m30.918273645s
81
+ // d .Truncate( 1µs) = 1h15m30.918273s
82
+ // d .Truncate( 1ms) = 1h15m30.918s
83
+ // d .Truncate( 1s) = 1h15m30s
84
+ // d .Truncate( 2s) = 1h15m30s
85
+ // d .Truncate( 1m0s) = 1h15m0s
86
+ // d .Truncate( 10m0s) = 1h10m0s
87
+ // d .Truncate(1h0m0s) = 1h0m0s
88
88
}
89
89
90
90
func ExampleParseDuration () {
You can’t perform that action at this time.
0 commit comments