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

Issue 79230043: code review 79230043: unicode/utf8: minor code simplification (Closed)

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

Description

unicode/utf8: minor code simplification It's a little bit waste to check if r is not a surrogate code point because RuneError is not a surrogate code point.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -20 lines) Patch
M src/pkg/unicode/utf8/utf8.go View 1 2 3 1 chunk +12 lines, -20 lines 0 comments Download

Messages

Total messages: 5
ruiu
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-03-23 21:21:31 UTC) #1
iant
I think the existing code is a little easier to understand. None of these conditions ...
10 years, 11 months ago (2014-03-23 22:10:33 UTC) #2
ruiu
Thank you for reviewing. I don't have a strong preference on this, so I'm totally ...
10 years, 11 months ago (2014-03-23 22:24:21 UTC) #3
iant
LGTM
10 years, 11 months ago (2014-03-23 22:40:57 UTC) #4
iant
10 years, 11 months ago (2014-03-23 22:44:33 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=01358eb1cea5 ***

unicode/utf8: minor code simplification

It's a little bit waste to check if r is not a surrogate
code point because RuneError is not a surrogate code point.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://codereview.appspot.com/79230043

Committer: Ian Lance Taylor <iant@golang.org>
Sign in to reply to this message.

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