diff --git a/src/core/span.rs b/src/core/span.rs index bff560a..ae85a57 100644 --- a/src/core/span.rs +++ b/src/core/span.rs @@ -88,7 +88,7 @@ pub fn ratio(x: N) -> SpanLen { SpanLen::Ratio(x.to_f32()) } -pub fn rel(x: N) -> SpanLen { +pub fn relative(x: N) -> SpanLen { SpanLen::Relative(x.to_f32()) } diff --git a/src/testing/mod.rs b/src/testing/mod.rs index 0a753db..2414010 100644 --- a/src/testing/mod.rs +++ b/src/testing/mod.rs @@ -64,7 +64,7 @@ impl Client { fixed(100), ratio(1), ratio(1), - rel(0.5), + relative(0.5), fixed(100), fixed(100), ],