Skip to content

Commit 84e97e2

Browse files
committed
Rename rectangular to rectangle.
1 parent 173312a commit 84e97e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/LispKit/Primitives/DrawingLibrary.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public final class DrawingLibrary: NativeLibrary {
147147
self.define(Procedure("copy-shape", copyShape))
148148
self.define(Procedure("line", line))
149149
self.define(Procedure("polygon", polygon))
150-
self.define(Procedure("rectangular", rectangular))
150+
self.define(Procedure("rectangle", rectangle))
151151
self.define(Procedure("circle", circle))
152152
self.define(Procedure("oval", oval))
153153
self.define(Procedure("arc", arc))
@@ -751,7 +751,7 @@ public final class DrawingLibrary: NativeLibrary {
751751
return .object(shape)
752752
}
753753

754-
private func rectangular(point: Expr, size: Expr, xradius: Expr?, yradius: Expr?) throws -> Expr {
754+
private func rectangle(point: Expr, size: Expr, xradius: Expr?, yradius: Expr?) throws -> Expr {
755755
guard case .pair(.flonum(let x), .flonum(let y)) = point else {
756756
throw RuntimeError.eval(.invalidPoint, point)
757757
}

Sources/LispKit/Resources/Examples/Plot.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(graph (flip-shape (interpolate ps))))
3939
(drawing
4040
; Draw a bounding box
41-
(draw (rectangular (rect-point rect) (rect-size rect)) 0.5)
41+
(draw (rectangle (rect-point rect) (rect-size rect)) 0.5)
4242
; Move rest of drawing into the bounding box
4343
(transform (translate (rect-x rect) (rect-y rect))
4444
; Draw the coordinate axis

0 commit comments

Comments
 (0)