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

Issue 108330043: code review 108330043: cmd/gofmt: fix -s for 3-index slices (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by gri
Modified:
10 years, 11 months ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

cmd/gofmt: fix gofmt -s for 3-index slices 3-index slices of the form s[:len(s):len(s)] cannot be simplified to s[::len(s)].

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M src/cmd/gofmt/simplify.go View 1 1 chunk +4 lines, -3 lines 0 comments Download
M src/cmd/gofmt/testdata/slices1.golden View 1 6 chunks +6 lines, -0 lines 0 comments Download
M src/cmd/gofmt/testdata/slices1.input View 1 6 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3
gri
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 11 months ago (2014-07-01 17:37:36 UTC) #1
bradfitz
LGTM
10 years, 11 months ago (2014-07-01 17:38:40 UTC) #2
gri
10 years, 11 months ago (2014-07-01 17:40:33 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=3e041f7ef9ff ***

cmd/gofmt: fix gofmt -s for 3-index slices

3-index slices of the form s[:len(s):len(s)]
cannot be simplified to s[::len(s)].

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/108330043
Sign in to reply to this message.

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