mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-22 04:56:09 +03:00
profiling/timing: rename big-int factorial function
This commit is contained in:
parent
e7af050223
commit
6346cf0fba
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user