repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* sh.c (sh_can_use_simple_return_p): Return false for SHmedia
[official-gcc.git]
/
libgo
/
go
/
sort
/
example_test.go
blob
f57d02546f79aecc82e788ad2ede8ab01a3e7a66
1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
package
sort_test
6
7
import
(
8
"fmt"
9
"sort"
10
)
11
12
func
ExampleInts
() {
13
s
:= []
int
{
5
,
2
,
6
,
3
,
1
,
4
}
// unsorted
14
sort
.
Ints
(
s
)
15
fmt
.
Println
(
s
)
16
// Output: [1 2 3 4 5 6]
17
}