Skip to content

Commit e2e8aed

Browse files
authored
Fix template documentation comments (#610)
The variable is `Version`, not `Branch`, and if we're using the template variable syntax, it should have the leading dot that it needs to.
1 parent a176bde commit e2e8aed

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,11 @@ type Repository struct {
555555
CommitURLTemplate string
556556

557557
// The repository URL for getting to a file. Has access to
558-
// {{Branch}}, {{Path}}
558+
// {{.Version}}, {{.Path}}
559559
FileURLTemplate string
560560

561561
// The URL fragment to add to a file URL for line numbers. has
562-
// access to {{LineNumber}}. The fragment should include the
562+
// access to {{.LineNumber}}. The fragment should include the
563563
// separator, generally '#' or ';'.
564564
LineFragmentTemplate string
565565

grpc/v1/webserver.pb.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

grpc/v1/webserver.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ message Repository {
177177
string commit_url_template = 7;
178178

179179
// The repository URL for getting to a file. Has access to
180-
// {{Branch}}, {{Path}}
180+
// {{.Version}}, {{.Path}}
181181
string file_url_template = 8;
182182

183183
// The URL fragment to add to a file URL for line numbers. has
184-
// access to {{LineNumber}}. The fragment should include the
184+
// access to {{.LineNumber}}. The fragment should include the
185185
// separator, generally '#' or ';'.
186186
string line_fragment_template = 9;
187187

0 commit comments

Comments
 (0)