Skip to content

Commit 0258b9a

Browse files
ultimatileCopilot
andauthored
Update crates/typst-library/src/layout/length.rs
Co-authored-by: Copilot <[email protected]>
1 parent e27e050 commit 0258b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/typst-library/src/layout/length.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Length {
9696
impl Length {
9797
/// この長さをポイントに変換します。
9898
///
99-
/// この長さが(単に`2pt`ではなく`5em + 2pt`のように)`em`以外の単位で非ゼロの値を持っているとエラーが発生して失敗します
99+
/// この長さが(単に`2pt`ではなく`5em + 2pt`のように)`em`単位の値が非ゼロの場合にエラーが発生して失敗します
100100
/// 長さの`em`成分を無視するために(`(5em + 2pt).abs.pt()`のように)`abs`フィールドを使用してください(したがって数値部分のみが変換されます)。
101101
#[func(name = "pt", title = "Points")]
102102
pub fn to_pt(&self, span: Span) -> SourceResult<f64> {

0 commit comments

Comments
 (0)