Skip to content

Commit eed0d87

Browse files
author
Shubham Chaturvedi
committed
fix: PR comments
1 parent 435515e commit eed0d87

File tree

1 file changed

+4
-4
lines changed
  • StandardLibrary/runtimes/go/ImplementationFromDafny-go/UUID

1 file changed

+4
-4
lines changed

StandardLibrary/runtimes/go/ImplementationFromDafny-go/UUID/externs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
func ToByteArray(seq dafny.Sequence) Wrappers.Result {
1010
var s string
1111
for i := dafny.Iterate(seq); ; {
12-
val, ok := i()
13-
if ok {
14-
s = s + string(val.(dafny.Char))
15-
} else {
12+
val, endOfSequence := i()
13+
if endOfSequence {
1614
break
15+
} else {
16+
s = s + string(val.(dafny.Char))
1717
}
1818
}
1919
uuidString := uuid.MustParse(s)

0 commit comments

Comments
 (0)