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

Unified Diff: src/pkg/path/filepath/path_plan9.go

Issue 5712045: code review 5712045: path/filepath: steer people away from HasPrefix (Closed)
Patch Set: diff -r 37763a8d9c71 https://go.googlecode.com/hg/ Created 13 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/pkg/path/filepath/path_unix.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/path/filepath/path_plan9.go
===================================================================
--- a/src/pkg/path/filepath/path_plan9.go
+++ b/src/pkg/path/filepath/path_plan9.go
@@ -17,7 +17,7 @@
return ""
}
-// HasPrefix tests whether the path p begins with prefix.
+// HasPrefix exists for historical compatibility and should not be used.
func HasPrefix(p, prefix string) bool {
return strings.HasPrefix(p, prefix)
}
« no previous file with comments | « no previous file | src/pkg/path/filepath/path_unix.go » ('j') | no next file with comments »

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