Skip to content

Commit 86bd513

Browse files
Fix 5 occurrences of printf-to-display
This use of `printf` has no arguments other than the template string.
1 parent 819e4ca commit 86bd513

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/syntax/platform.rkt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
(define reprs (platform-representations platform))
257257
(define repr-costs (platform-representation-costs platform))
258258

259-
(printf "Representations:\n")
259+
(displayln "Representations:")
260260
(define reprs-data
261261
(for/list ([repr (in-hash-values reprs)]
262262
[n (in-naturals)])
@@ -265,7 +265,7 @@
265265
(list n name type total-bits cost)))
266266
(write-table reprs-data (list "idx" "name" "type" "#bits" "cost"))
267267

268-
(printf "\nImplementations\n")
268+
(displayln "\nImplementations")
269269
(define impls-data
270270
(for/list ([impl (in-hash-values impls)]
271271
[n (in-naturals)])
@@ -298,15 +298,15 @@
298298
(printf "~a" (~a (list-ref headers 0) #:width (vector-ref cell-widths 0)))
299299
(for ([i (in-range 1 row-length)])
300300
(printf "|~a" (~a (list-ref headers i) #:width (vector-ref cell-widths i))))
301-
(printf "\n")
301+
(newline)
302302
(printf "~a" (~a "" #:width (vector-ref cell-widths 0) #:right-pad-string "-"))
303303
(for ([i (in-range 1 row-length)])
304304
(printf "+~a" (~a "" #:width (vector-ref cell-widths i) #:right-pad-string "-")))
305-
(printf "\n")
305+
(newline)
306306

307307
; Content
308308
(for ([row data])
309309
(printf "~a" (~a (list-ref row 0) #:width (vector-ref cell-widths 0)))
310310
(for ([i (in-range 1 row-length)])
311311
(printf "|~a" (~a (list-ref row i) #:width (vector-ref cell-widths i))))
312-
(printf "\n")))
312+
(newline)))

0 commit comments

Comments
 (0)