Skip to content

Commit 91ed795

Browse files
committed
Formatting
1 parent e4ddf78 commit 91ed795

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

benchmark/benchmarks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec = (
4444
g = (
4545
bezier = BezierCurve([Point(t, sin(t), 0) for t in range(-pi, pi, length = 361)]),
4646
triangle = Triangle(Point(1, 0, 0), Point(0, 1, 0), Point(0, 0, 1)),
47-
tetrahedron = let
47+
tetrahedron = let
4848
a = Point(0, 3, 0)
4949
b = Point(-7, 0, 0)
5050
c = Point(8, 0, 0)

src/specializations/Tetrahedron.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ end
2525

2626
function _parametric(tetrahedron::Meshes.Tetrahedron, t1, t2, t3)
2727
if t3 < 0 || t3 > 1
28-
throw(DomainError(t3, "tetrahedron(t1, t2, t3) is not defined for t3 outside [0, 1]."))
28+
msg = "tetrahedron(t1, t2, t3) is not defined for t3 outside [0, 1]."
29+
throw(DomainError(t3, msg))
2930
end
3031

3132
# Take a triangular cross-section at t3

src/specializations/Triangle.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ end
2525

2626
function _parametric(triangle::Meshes.Triangle, t1, t2)
2727
if (t1 < 0 || t1 > 1) || (t2 < 0 || t2 > 1)
28-
throw(DomainError(t3, "triangle(t1, t2) is not defined for (t1, t2) outside [0, 1]^2."))
28+
msg ="triangle(t1, t2) is not defined for (t1, t2) outside [0, 1]^2."
29+
throw(DomainError((t1, t2), msg))
2930
end
3031

3132
# Form a line segment between sides

0 commit comments

Comments
 (0)