Skip to content

Commit

Permalink
Merge pull request #8768 from ream88/patch-1
Browse files Browse the repository at this point in the history
Fix a syntax error in example Java code
  • Loading branch information
garazdawi authored Sep 2, 2024
2 parents 0e42742 + b05bfd8 commit 23e6e58
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/jinterface/doc/guides/jinterface_users_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ while (true) {
try {
o = mbox.receive();
if (o instanceof OtpErlangTuple) {
msg = (OtpErlangTuple)o;
from = (OtpErlangPid)(msg.elementAt(0));
mbox.send(from,msg.elementAt(1));
}
catch (Exception e) {
System.out.println("" + e);
msg = (OtpErlangTuple) o;
from = (OtpErlangPid) (msg.elementAt(0));
mbox.send(from, msg.elementAt(1));
}
} catch (Exception e) {
System.out.println("" + e);
}
}
```
Expand Down

0 comments on commit 23e6e58

Please sign in to comment.