google / starlark-go

Starlark in Go: the Starlark configuration language, implemented in Go
BSD 3-Clause "New" or "Revised" License
2.32k stars 212 forks source link

Fix type expressed in last example of specs' Floating-point numbers (… #371

Closed Algebra8 closed 3 years ago

Algebra8 commented 3 years ago

Fix type expressed in last example of specs' Floating-point numbers (fixes #370)

According to the specs, aithmetic operations applied to a mixture of float and int operands should result in a float value. However, the example 3.0 // 2.0 had the value 1 commented beside it, which could imply that its type is int. For clarity this mistake was fixed.