mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 02:40:05 +00:00
resolve doc-test issues
This commit is contained in:
@@ -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