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

Issue 6099057: code review 6099057: vet: check values for named constants as well as literals. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by r
Modified:
12 years ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

vet: check values for named constants as well as literals. As in: const format = "%s" fmt.Printf(format, "hi") Also fix a couple of bugs by rewriting the routine.

Patch Set 1 #

Patch Set 2 : diff -r a5db0f596a99 https://code.google.com/p/go/ #

Patch Set 3 : diff -r a5db0f596a99 https://code.google.com/p/go/ #

Patch Set 4 : diff -r a5db0f596a99 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -14 lines) Patch
M src/cmd/vet/print.go View 1 2 3 chunks +43 lines, -14 lines 0 comments Download

Messages

Total messages: 3
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2012-04-25 01:31:49 UTC) #1
rsc
LGTM Nice
12 years ago (2012-04-25 02:09:21 UTC) #2
r
12 years ago (2012-04-25 02:15:02 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=29665c4bae69 ***

vet: check values for named constants as well as literals.
As in:
        const format = "%s"
        fmt.Printf(format, "hi")
Also fix a couple of bugs by rewriting the routine.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6099057
Sign in to reply to this message.

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