浏览代码

Fix float64_range example

Jeroen van Rijn 4 月之前
父节点
当前提交
47f889569f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/math/rand/rand.odin

+ 2 - 2
core/math/rand/rand.odin

@@ -432,7 +432,7 @@ Example:
 Possible Output:
 
 	15.312
-	673.130
+	273.15
 
 */
 @(require_results) float64_range :: proc(low, high: f64, gen := context.random_generator) -> (val: f64) {
@@ -467,7 +467,7 @@ Example:
 Possible Output:
 
 	15.312
-	273.130
+	273.15
 
 */
 @(require_results) float32_range :: proc(low, high: f32, gen := context.random_generator) -> (val: f32) {