mirror of
https://github.com/tmrts/go-patterns.git
synced 2026-02-04 14:46:19 +00:00
profiling/timing: rename big-int factorial function
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user