aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Han <[email protected]>2016-09-13 10:53:54 +0800
committerTony Han <[email protected]>2016-09-13 12:56:01 +0800
commit90345d3fe0daaf094bca2951ed45aaa278a2e447 (patch)
tree4b4a7d7fc3c3369152aba871591fb4e6b190ce7e
parent86d1fb0865193cce4e308baa6472885a81033f10 (diff)
downloadotp-90345d3fe0daaf094bca2951ed45aaa278a2e447.tar.gz
otp-90345d3fe0daaf094bca2951ed45aaa278a2e447.tar.bz2
otp-90345d3fe0daaf094bca2951ed45aaa278a2e447.zip
doc: Fix code format in tutorial/c_port
-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