Skip to content

Commit

Permalink
Fix a code snippet and two typos in the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jimenezrick committed Feb 22, 2012
1 parent 520ddbc commit 67c16b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/stdlib/doc/src/ets.xml
Expand Up @@ -671,7 +671,7 @@ ets:is_compiled_ms(Broken).</code>
<c>duplicate_bag</c>, the function returns a list of
arbitrary length.</p>
<p>Note that the time order of object insertions is preserved;
The first object inserted with the given key will be first
the first object inserted with the given key will be first
in the resulting list, and so on.</p>
<p>Insert and look-up times in tables of type <c>set</c>,
<c>bag</c> and <c>duplicate_bag</c> are constant, regardless
Expand Down
2 changes: 1 addition & 1 deletion lib/stdlib/doc/src/lists.xml
Expand Up @@ -663,7 +663,7 @@ splitwith(Pred, List) ->
<desc>
<p>Returns the sub-list of <c><anno>List1</anno></c> starting at position 1
and with (max) <c><anno>Len</anno></c> elements. It is not an error for
<c><anno>Len</anno></c> to exceed the length of the list -- in that case
<c><anno>Len</anno></c> to exceed the length of the list, in that case
the whole list is returned.</p>
</desc>
</func>
Expand Down
6 changes: 3 additions & 3 deletions system/doc/tutorial/c_portdriver.xmlsrc
Expand Up @@ -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]).

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 67c16b4

Please sign in to comment.