From 5dfb8ccf610a10a47755f82ebbbbb0ffb7ec7222 Mon Sep 17 00:00:00 2001 From: gomazarashi Date: Sat, 19 Sep 2026 21:04:21 +0900 Subject: [PATCH] =?UTF-8?q?`/docs/reference/foundations/calc/`=E3=81=AE?= =?UTF-8?q?=E5=86=8D=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/typst-library/src/foundations/calc.rs | 10 +++------- website/translation-status.json | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/typst-library/src/foundations/calc.rs b/crates/typst-library/src/foundations/calc.rs index e7a5955ef..42af91391 100644 --- a/crates/typst-library/src/foundations/calc.rs +++ b/crates/typst-library/src/foundations/calc.rs @@ -559,8 +559,7 @@ fn binom_impl(n: u64, k: u64) -> Option { /// 2つの整数値の最大公約数。 /// -/// This will error if the result of integer division would be larger than the -/// maximum 64-bit signed integer. +/// 整数除算の結果が64ビット符号付き整数の最大値より大きくなる場合はエラーとなります。 /// /// ```example /// #calc.gcd(7, 42) @@ -911,8 +910,7 @@ pub fn rem( /// /// この計算の結果は、商を被除数が除数の`{n}`倍以上になる整数`{n}`へ丸めた値です。 /// -/// This can error if the resulting number is larger than the maximum value or -/// smaller than the minimum value for its type. +/// 結果の数値がその型の最大値より大きい、または最小値より小さい場合はエラーとなることがあります。 /// /// ```example /// #calc.div-euclid(7, 3) \ @@ -991,9 +989,7 @@ pub fn rem_euclid( /// 2つの数値の商(切り捨て除算)を計算します。 /// -/// Note that this function will always return an [integer]($int), and will -/// error if the resulting number is larger than the maximum 64-bit signed -/// integer or smaller than the minimum for that type. +/// この関数は常に[整数値]($int)を返し、結果の数値が64ビット符号付き整数の最大値より大きい、またはその型の最小値より小さい場合はエラーとなることに注意してください。 /// /// ```example /// $ "quo"(a, b) &= floor(a/b) \ diff --git a/website/translation-status.json b/website/translation-status.json index 981ad6b6d..69bc45009 100644 --- a/website/translation-status.json +++ b/website/translation-status.json @@ -18,7 +18,7 @@ "/docs/reference/foundations/auto/": "untranslated", "/docs/reference/foundations/bool/": "untranslated", "/docs/reference/foundations/bytes/": "untranslated", - "/docs/reference/foundations/calc/": "partially_translated", + "/docs/reference/foundations/calc/": "translated", "/docs/reference/foundations/content/": "translated", "/docs/reference/foundations/datetime/": "partially_translated", "/docs/reference/foundations/decimal/": "untranslated",