Reformat example code on PostDescription
This commit is contained in:
@@ -76,6 +76,7 @@ func FriendlyPostTitle(content, friendlyId string) string {
|
|||||||
// choosing what to generate. In case a post has a title, this function will
|
// 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
|
// fail, and logic should instead be implemented to skip this when there's no
|
||||||
// title, like so:
|
// title, like so:
|
||||||
|
//
|
||||||
// var desc string
|
// var desc string
|
||||||
// if title == "" {
|
// if title == "" {
|
||||||
// desc = PostDescription(content, title, friendlyId)
|
// desc = PostDescription(content, title, friendlyId)
|
||||||
|
|||||||
Reference in New Issue
Block a user