]> gitweb.factorcode.org Git - factor.git/commitdiff
minor cleanup
authorDoug Coleman <erg@jobim.local>
Fri, 10 Apr 2009 02:03:42 +0000 (21:03 -0500)
committerDoug Coleman <erg@jobim.local>
Fri, 10 Apr 2009 02:03:42 +0000 (21:03 -0500)
basis/tools/hexdump/hexdump.factor

index 63b55729fbd0454698431af4a43c9ec362c19d32..666e05108811a08b74d720339bb6d398c099e63c 100644 (file)
@@ -16,10 +16,11 @@ IN: tools.hexdump
     16 * >hex 8 CHAR: 0 pad-head write "h: " write ;
 
 : >hex-digit ( digit -- str )
-    >hex 2 CHAR: 0 pad-head " " append ;
+    >hex 2 CHAR: 0 pad-head ;
 
 : >hex-digits ( bytes -- str )
-    [ >hex-digit ] { } map-as concat 48 CHAR: \s pad-tail ;
+    [ >hex-digit " " append ] { } map-as concat
+    48 CHAR: \s pad-tail ;
 
 : >ascii ( bytes -- str )
     [ [ printable? ] keep CHAR: . ? ] "" map-as ;