diff --git a/profiling/timing.md b/profiling/timing.md index 2413a85..575356a 100644 --- a/profiling/timing.md +++ b/profiling/timing.md @@ -26,6 +26,8 @@ func Duration(invocation time.Time, name string) { ```go func BigIntFactorial(x big.Int) *big.Int { + // Arguments to a defer statement is immediately evaluated and stored. + // The deferred function receives the pre-evaluated values when its invoked. defer profile.Duration(time.Now(), "IntFactorial") y := big.NewInt(1)