소스 검색

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) {