doc: make doc testable
This commit is contained in:
7
doc/_readme/llgo_call_cmath/call_cmath.go
Normal file
7
doc/_readme/llgo_call_cmath/call_cmath.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "github.com/goplus/llgo/c/math"
|
||||
|
||||
func main() {
|
||||
println("sqrt(2) =", math.Sqrt(2))
|
||||
}
|
||||
Reference in New Issue
Block a user