aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-09-14 14:56:34 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-09-14 14:56:34 +0200
commit563b09d75ea218c7e731dadccf34098915010408 (patch)
tree61ff92355ae5aa9c8e2731b0c9a6ad8582e51f01
parent82ee12b7cc593707068405474ac284c746123b57 (diff)
parentf1ab784289830d0ea1d089f29364fbc56515f05b (diff)
downloadotp-563b09d75ea218c7e731dadccf34098915010408.tar.gz
otp-563b09d75ea218c7e731dadccf34098915010408.tar.bz2
otp-563b09d75ea218c7e731dadccf34098915010408.zip
Merge branch 'maint'
-rw-r--r--system/doc/tutorial/c_port.xmlsrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/doc/tutorial/c_port.xmlsrc b/system/doc/tutorial/c_port.xmlsrc
index 695f16515d..3c3bc48044 100644
--- a/system/doc/tutorial/c_port.xmlsrc
+++ b/system/doc/tutorial/c_port.xmlsrc
@@ -98,11 +98,11 @@ loop(Port) ->
{call, Caller, Msg} ->
Port ! {self(), {command, encode(Msg)}},
receive
- {Port, {data, Data}} ->
+ {Port, {data, Data}} ->
Caller ! {complex, decode(Data)}
end,
loop(Port)
- end.</pre>
+ end.</pre>
<p>Assuming that both the arguments and the results from the C
functions are less than 256, a simple encoding/decoding scheme
is employed. In this scheme, <c>foo</c> is represented by byte