From 5d731245c46ed958ac71aff6a0d28a9944e03464 Mon Sep 17 00:00:00 2001 From: sammyette Date: Wed, 2 Apr 2025 10:22:51 -0400 Subject: [PATCH] docs: fix function description --- editor.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/editor.go b/editor.go index 3e6f9b7..2c04f25 100644 --- a/editor.go +++ b/editor.go @@ -48,7 +48,7 @@ func editorInsert(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { // #interface editor // setVimRegister(register, text) // Sets the vim register at `register` to hold the passed text. -// #aram register string +// #param register string // #param text string func editorSetRegister(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { if err := c.Check1Arg(); err != nil { @@ -109,8 +109,9 @@ func editorReadChar(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { } // #interface editor -// deleteByAmount() -> string -// Reads a keystroke from the user. This is in a format of something like Ctrl-L. +// deleteByAmount(amount) +// Deletes characters in the line by the given amount. +// #param amount number func editorDeleteByAmount(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { if err := c.Check1Arg(); err != nil { return nil, err