internal/frontend: document functions in search.go

Change-Id: I9b36a555eb8a605167f84aef52c2bfac1aae8a85
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/348129
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
diff --git a/internal/frontend/search.go b/internal/frontend/search.go
index b2e2af1..0f624f8 100644
--- a/internal/frontend/search.go
+++ b/internal/frontend/search.go
@@ -355,6 +355,8 @@
 	return isCapitalized(q)
 }
 
+// symbolSynopsis returns the string to be displayed in the code snippet
+// section for a symbol search result.
 func symbolSynopsis(r *postgres.SearchResult) string {
 	switch r.SymbolKind {
 	case internal.SymbolKindField:
@@ -425,6 +427,7 @@
 	}
 }
 
+// isCapitalized reports whether the first letter of s is capitalized.
 func isCapitalized(s string) bool {
 	if len(s) == 0 {
 		return false