]> gitweb.factorcode.org Git - factor.git/commitdiff
io.streams.duplex: use >duplex-stream<.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 11 Jan 2019 04:35:32 +0000 (20:35 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 11 Jan 2019 04:35:32 +0000 (20:35 -0800)
basis/io/streams/duplex/duplex.factor

index fc1a55fc00b4a3d5245cec3eb6693676091f015f..9cea968567a0027f3283050b0e81a2453ee6c873 100644 (file)
@@ -19,7 +19,7 @@ INSTANCE: duplex-stream output-stream
 : >duplex-stream< ( stream -- in out ) [ in>> ] [ out>> ] bi ; inline
 
 M: duplex-stream stream-element-type
-    [ in>> ] [ out>> ] bi
+    >duplex-stream<
     [ stream-element-type ] bi@
     2dup eq? [ drop ] [ "Cannot determine element type" throw ] if ;