From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= Date: Wed, 18 May 2016 15:53:35 +0200 Subject: Update STDLIB documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Björn Gustavsson and Hans Bolinder. --- lib/stdlib/doc/src/lib.xml | 57 +++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 26 deletions(-) (limited to 'lib/stdlib/doc/src/lib.xml') diff --git a/lib/stdlib/doc/src/lib.xml b/lib/stdlib/doc/src/lib.xml index ac41987eaf..58dad7c9e0 100644 --- a/lib/stdlib/doc/src/lib.xml +++ b/lib/stdlib/doc/src/lib.xml @@ -29,68 +29,73 @@ lib - A number of useful library functions + Useful library functions. -

This module is retained for compatibility. It may disappear - without warning in a future release.

+

This module is retained for backward compatibility. It can disappear + without warning in a future Erlang/OTP release.

+ - - - Flush messages - -

Flushes the message buffer of the current process.

-
-
- Print error message + Print error message.

Prints error message Args in accordance with - Format. Similar to io:format/2, see - io(3).

+ Format. Similar to + io:format/2.

+ - - Return name of Erlang start script + + Flush messages. -

Returns the name of the script that started the current - Erlang session.

+

Flushes the message buffer of the current process.

+ - Remove last newline + Remove last newline.

Removes the last newline character, if any, in String1.

+ + + + Return name of Erlang start script. + +

Returns the name of the script that started the current + Erlang session.

+
+
+ - Send a message + Send a message. -

This function to makes it possible to send a message using - the apply/3 BIF.

+

Makes it possible to send a message using the apply/3 BIF.

+ - Send a message and wait for an answer + Send a message and wait for an answer. -

As send/2, but waits for an answer. It is implemented - as follows:

+

As send/2, + but waits for an answer. It is implemented as follows:

sendw(To, Msg) -> To ! {self(),Msg}, receive Reply -> Reply end. -

The message returned is not necessarily a reply to the - message sent.

+

The returned message is not necessarily a reply to the sent + message.

-- cgit v1.2.3