resolve doc-test issues
This commit is contained in:
1 parent
100e907890
commit
1886193c6c
3 files changed
+55
-5
No files matched your search
@@ -501,8 +501,7 @@ Example:
|
||||
|
||||
import "core:fmt"
|
||||
import "core:strconv"
|
||||
|
||||
strconv_round_down_example :: proc {
|
||||
strconv_round_down_example :: proc() {
|
||||
d: decimal.Decimal
|
||||
str := [64]u8{}
|
||||
ok := decimal.set(&d, "123.456")
|
||||
@@ -534,8 +533,7 @@ Example:
|
||||
|
||||
import "core:fmt"
|
||||
import "core:strconv"
|
||||
|
||||
strconv_rounded_integer_example :: proc {
|
||||
strconv_rounded_integer_example :: proc() {
|
||||
d: decimal.Decimal
|
||||
ok := decimal.set(&d, "123.456")
|
||||
fmt.println(decimal.rounded_integer(&d))
|
||||
|
||||
Reference in new issue
Block a user