1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-21 20:46:08 +03:00

profiling/timing: rename big-int factorial function

This commit is contained in:
Tamer Tas 2017-02-22 19:05:18 +03:00
parent e7af050223
commit 6346cf0fba

View File

@ -25,7 +25,7 @@ func Duration(invocation time.Time, name string) {
## Usage ## Usage
```go ```go
func IntFactorial(x big.Int) *big.Int { func BigIntFactorial(x big.Int) *big.Int {
defer profile.Duration(time.Now(), "IntFactorial") defer profile.Duration(time.Now(), "IntFactorial")
y := big.NewInt(1) y := big.NewInt(1)