mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
Update documentation for expensiveComputation() (#4269)
Added comment for clarity
This commit is contained in:
parent
20ed619532
commit
5ecf1a3bba
@ -190,6 +190,7 @@ func learnMemory() (p, q *int) {
|
|||||||
return &s[3], &r // & takes the address of an object.
|
return &s[3], &r // & takes the address of an object.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use the aliased math library (see imports, above)
|
||||||
func expensiveComputation() float64 {
|
func expensiveComputation() float64 {
|
||||||
return m.Exp(10)
|
return m.Exp(10)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user