We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 262ff92 + d970be4 commit 49650d1Copy full SHA for 49650d1
devbot/amp.mt
@@ -84,7 +84,7 @@ def makeAMPPacketMachine() as DeepFrozen:
84
85
def packAMPPacket(packet) as DeepFrozen:
86
var buf := []
87
- for via (UTF8.encode) key => via (UTF8.encode) value in packet:
+ for via (UTF8.encode) key => via (UTF8.encode) value in (packet):
88
def keySize :(Int <= 0xff) := key.size()
89
buf += [0x00, keySize]
90
buf += _makeList.fromIterable(key)
@@ -115,7 +115,7 @@ def makeAMP(drain) as DeepFrozen:
115
buf with= (packet)
116
when (drain) ->
117
if (drain != null):
118
- for item in buf:
+ for item in (buf):
119
drain.receive(item)
120
buf := []
121
0 commit comments