mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-21 13:03:22 +00:00
docs: update doc strings for sink read functions
This commit is contained in:
parent
f5fe85ea2e
commit
f9546e10e4
6
sink.go
6
sink.go
@ -69,9 +69,9 @@ func setupSinkType(rtm *rt.Runtime) {
|
|||||||
|
|
||||||
|
|
||||||
// #member
|
// #member
|
||||||
// read() -> string
|
// readAll() -> string
|
||||||
// --- @returns string
|
// --- @returns string
|
||||||
// Reads input from the sink.
|
// Reads all input from the sink.
|
||||||
func luaSinkReadAll(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
func luaSinkReadAll(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
if err := c.Check1Arg(); err != nil {
|
if err := c.Check1Arg(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -102,7 +102,7 @@ func luaSinkReadAll(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
|||||||
// #member
|
// #member
|
||||||
// read() -> string
|
// read() -> string
|
||||||
// --- @returns string
|
// --- @returns string
|
||||||
// Reads input from the sink.
|
// Reads a liine of input from the sink.
|
||||||
func luaSinkRead(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
func luaSinkRead(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
if err := c.Check1Arg(); err != nil {
|
if err := c.Check1Arg(); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user