From bd3e9fdca6953d67cc73c22b04c5210251bd134a Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 16 Oct 2021 15:36:30 -0400 Subject: [PATCH] docs: make linebreaks to descriptions for better alignment --- golibs/bait/bait.go | 8 ++++++-- golibs/fs/fs.go | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/golibs/bait/bait.go b/golibs/bait/bait.go index b8aab18..92c2df1 100644 --- a/golibs/bait/bait.go +++ b/golibs/bait/bait.go @@ -23,8 +23,12 @@ func (b *Bait) Loader(L *lua.LState) int { L.SetField(mod, "throw", luar.New(L, b.bthrow)) L.SetField(mod, "catch", luar.New(L, b.bcatch)) - util.Document(L, mod, `Bait is the event emitter for Hilbish. Why name it bait? Because it throws hooks that you can catch. (emits events that you can listen to) and because why not, fun naming is fun. -This is what you will use if you want to listen in on hooks to know when certain things have happened, like when you've changed directory, a command has failed, etc.`) + util.Document(L, mod, `Bait is the event emitter for Hilbish. Why name it bait? +Because it throws hooks that you can catch +(emits events that you can listen to) and because why not, +fun naming is fun. This is what you will use if you want to +listen in on hooks to know when certain things have happened, +like when you've changed directory, a command has failed, etc.`) L.Push(mod) return 1 diff --git a/golibs/fs/fs.go b/golibs/fs/fs.go index 78f2241..c9582d0 100644 --- a/golibs/fs/fs.go +++ b/golibs/fs/fs.go @@ -3,7 +3,6 @@ package fs import ( - "fmt" "os" "strings" @@ -15,8 +14,9 @@ import ( func Loader(L *lua.LState) int { mod := L.SetFuncs(L.NewTable(), exports) - util.Document(L, mod, `The fs module provides easy and simple access to filesystem functions and other -things, and acts an addition to the Lua standard library's I/O and fs functions.`) + util.Document(L, mod, `The fs module provides easy and simple access to +filesystem functions and other things, and acts an +addition to the Lua standard library's I/O and fs functions.`) L.Push(mod) return 1