From 857f0ff9b3480f95ba51eeda135a002a5c1da834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20N=C3=BCcke?= Date: Tue, 31 Dec 2013 10:07:20 -0800 Subject: [PATCH] Updated API Text (markdown) --- API-Text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API-Text.md b/API-Text.md index 39d176d..918e157 100644 --- a/API-Text.md +++ b/API-Text.md @@ -8,7 +8,7 @@ This API provides some more general operations on strings and data serialization Pads a string with whitespace on the left up to the specified length. - `text.trim(value: string): string` Removes whitespace characters from the start and end of a string. -- `text.serialize(value: any): string` +- `text.serialize(value: any except functions): string` Generates a string from an object that can be parsed again using `text.unserialize`. The generated output is essentially Lua code. Supports basic types (nil, boolean, number, string) and tables without cycles (will error out when cycles are detected). Properly handles NaN values and infinity. This function can be useful for sending messages via a network card. - `text.unserialize(value: string): any`