diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-09-14 14:56:07 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-09-14 14:56:07 +0200 |
commit | f1ab784289830d0ea1d089f29364fbc56515f05b (patch) | |
tree | a540c476c7ca7e289d329d319b89c6fe1fd26913 | |
parent | 74e8787598e3ba427fc033fd38b5db5d69c9886e (diff) | |
parent | 90345d3fe0daaf094bca2951ed45aaa278a2e447 (diff) | |
download | otp-f1ab784289830d0ea1d089f29364fbc56515f05b.tar.gz otp-f1ab784289830d0ea1d089f29364fbc56515f05b.tar.bz2 otp-f1ab784289830d0ea1d089f29364fbc56515f05b.zip |
Merge branch 'tony612/erts/fix-doc-format-in-c_port/PR-1167/OTP-13885' into maint
* tony612/erts/fix-doc-format-in-c_port/PR-1167/OTP-13885:
doc: Fix code format in tutorial/c_port
-rw-r--r-- | system/doc/tutorial/c_port.xmlsrc | 4 |
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 |