Skip to content

Commit 90a292a

Browse files
Fix the names of the examples
1 parent cebe2d2 commit 90a292a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ dep ensure -vendor-only
2929

3030
## Example
3131

32-
`coderunner.CheckImports` (success):
32+
`coderunner.CheckImports()` (success):
3333

3434
```go
3535
package main
@@ -78,7 +78,7 @@ func main() {
7878
}
7979
```
8080

81-
`coderunner.CheckImports` (error):
81+
`coderunner.CheckImports()` (error):
8282

8383
```go
8484
package main
@@ -127,7 +127,7 @@ func main() {
127127
}
128128
```
129129

130-
`systemutils.RunCommand`:
130+
`coderunner.CompileCode()`:
131131

132132
```go
133133
package main
@@ -180,7 +180,7 @@ func main() {
180180
}
181181
```
182182

183-
`testrunner.RunTestCases` (success):
183+
`testrunner.RunTestCases()` (success):
184184

185185
```go
186186
package main
@@ -238,7 +238,7 @@ func main() {
238238
}
239239
```
240240

241-
`testrunner.RunTestCases` (error):
241+
`testrunner.RunTestCases()` (error):
242242

243243
```go
244244
package main

examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func ExampleCheckImports_error() {
7676
// disallowed import "fmt"
7777
}
7878

79-
func ExampleRunCommand() {
79+
func ExampleCompileCode() {
8080
const code = `
8181
package main
8282

0 commit comments

Comments
 (0)