From 4934315624487b3cf3cf997b399d3062e83b2af8 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 4 Apr 2023 12:10:40 -0400 Subject: [PATCH] Reformat example code on PostDescription --- posts/parse.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/posts/parse.go b/posts/parse.go index 0d61bac..6c179ce 100644 --- a/posts/parse.go +++ b/posts/parse.go @@ -76,12 +76,13 @@ func FriendlyPostTitle(content, friendlyId string) string { // choosing what to generate. In case a post has a title, this function will // fail, and logic should instead be implemented to skip this when there's no // title, like so: -// var desc string -// if title == "" { -// desc = PostDescription(content, title, friendlyId) -// } else { -// desc = ShortPostDescription(content) -// } +// +// var desc string +// if title == "" { +// desc = PostDescription(content, title, friendlyId) +// } else { +// desc = ShortPostDescription(content) +// } func PostDescription(content, title, friendlyId string) string { maxLen := 140