Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(109)

Unified Diff: src/cmd/godoc/index.go

Issue 833044: code review 833044: simplify various code using new map index rule (Closed)
Patch Set: code review 833044: simplify various code using new map index rule Created 15 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/cmd/goinstall/main.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/godoc/index.go
===================================================================
--- a/src/cmd/godoc/index.go
+++ b/src/cmd/godoc/index.go
@@ -682,8 +682,8 @@
func (x *Index) LookupWord(w string) (match *LookupResult, alt *AltWords) {
- match, _ = x.words[w]
- alt, _ = x.alts[canonical(w)]
+ match = x.words[w]
+ alt = x.alts[canonical(w)]
// remove current spelling from alternatives
// (if there is no match, the alternatives do
// not contain the current spelling)
« no previous file with comments | « no previous file | src/cmd/goinstall/main.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b