~sircmpwn/godocs.io

gddo: internal/doc: Fix example names v1 APPLIED

Adnan Maolood: 1
 internal/doc: Fix example names

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/godocs.io/patches/22533/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gddo] internal/doc: Fix example names Export this patch

---
Use only the suffix instead of the entire name.

 internal/doc/builder.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/doc/builder.go b/internal/doc/builder.go
index 8fa810f..c94dd6e 100644
--- a/internal/doc/builder.go
+++ b/internal/doc/builder.go
@@ -96,7 +96,7 @@ func (b *builder) examples(examples []*doc.Example) []*Example {
		}

		docs = append(docs, &Example{
			Name:   e.Name,
			Name:   strings.Title(e.Suffix),
			Doc:    e.Doc,
			Code:   code,
			Output: output,
-- 
2.31.1
Thanks!

To git@git.sr.ht:~sircmpwn/gddo
   c5d1165..fee53a7  master -> master