From 2662b1afedd328a0d59dafd0aa028d126b087f2c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 14 Mar 2022 18:37:56 -0700 Subject: . --- doc/manual.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/manual.html b/doc/manual.html index 01c00db..5721704 100644 --- a/doc/manual.html +++ b/doc/manual.html @@ -3602,7 +3602,8 @@ idiomatic Teliva uses some slightly different primitives.

This function opens a file exclusively for reading, and returns a channel (NOT a file as in Lua) or nil on error. -recv() from the channel to read a line at a time from the file. +recv from the channel to read a +line at a time from the file.

(The fs parameter is currently unused. It will be used to pass in @@ -3612,11 +3613,11 @@ fake file systems for tests.)


character_by_character(chanin, chanout)

-This function converts a channel that can recv() a line at a time -from a file into a channel that can recv() a character at a time. -Don't try to mix by-line reads with by-character reads. Once a channel is -passed into character_by_character, calling code should stop trying -to use it. +This function converts a channel that can recv +a line at a time from a file into a channel that can recv +a character at a time. Don't try to mix by-line reads with by-character reads. +Once a channel is passed into character_by_character, calling +code should stop trying to use it.

@@ -3625,9 +3626,9 @@ to use it.

This function opens a file exclusively for writing, and returns a channel (NOT a file as in Lua) or nil on error. -send() to the channel will write to the file. close() on the -channel will persist the changes and make them externally visible. All writes -are hidden until close(). +send to the channel to write to +the file. close on the channel will persist the changes and make +them externally visible. All writes are hidden until close.

(The fs parameter is currently unused. It will be used to pass in -- cgit 1.4.1-2-gfad0