~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/go/ast/print_test.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
// Split s into lines, trim whitespace from all lines, and return
54
54
// the concatenated non-empty lines.
55
55
func trim(s string) string {
56
 
        lines := strings.Split(s, "\n", -1)
 
56
        lines := strings.Split(s, "\n")
57
57
        i := 0
58
58
        for _, line := range lines {
59
59
                line = strings.TrimSpace(line)