diff options
author | Ricardo Catalinas Jiménez <jimenezrick@gmail.com> | 2012-02-15 04:26:48 +0100 |
---|---|---|
committer | Ricardo Catalinas Jiménez <jimenezrick@gmail.com> | 2012-02-22 11:10:45 +0100 |
commit | 67c16b43c5d33c2e4b4dfd226b4508d091336373 (patch) | |
tree | fb692905c7466510d112f0031c0698619509d401 /system/doc/tutorial/c_portdriver.xmlsrc | |
parent | 520ddbc83ec87bcec262680bd915184182e3998e (diff) | |
download | otp-67c16b43c5d33c2e4b4dfd226b4508d091336373.tar.gz otp-67c16b43c5d33c2e4b4dfd226b4508d091336373.tar.bz2 otp-67c16b43c5d33c2e4b4dfd226b4508d091336373.zip |
Fix a code snippet and two typos in the doc
Diffstat (limited to 'system/doc/tutorial/c_portdriver.xmlsrc')
-rw-r--r-- | system/doc/tutorial/c_portdriver.xmlsrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/doc/tutorial/c_portdriver.xmlsrc b/system/doc/tutorial/c_portdriver.xmlsrc index f875fa80d2..e6887a25d1 100644 --- a/system/doc/tutorial/c_portdriver.xmlsrc +++ b/system/doc/tutorial/c_portdriver.xmlsrc @@ -68,8 +68,8 @@ start(SharedLib) -> case erl_ddll:load_driver(".", SharedLib) of ok -> ok; -\011{error, already_loaded} -> ok; -\011_ -> exit({error, could_not_load_driver}) + {error, already_loaded} -> ok; + _ -> exit({error, could_not_load_driver}) end, spawn(?MODULE, init, [SharedLib]). @@ -102,7 +102,7 @@ loop(Port) -> {call, Caller, Msg} -> Port ! {self(), {command, encode(Msg)}}, receive -\011 {Port, {data, Data}} -> + {Port, {data, Data}} -> Caller ! {complex, decode(Data)} end, loop(Port) |