Skip to content

Commit

Permalink
Name-neaten for #1392 (#1393)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl authored Sep 11, 2023
1 parent 39fa3a1 commit 5136507
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/src/miller-as-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func custom_options() *cli.TOptions {
}

// This function you don't need to modify.
func convert_csv_to_json(
func run_custom_processor(
fileNames []string,
options *cli.TOptions,
record_processor func (irac *types.RecordAndContext) (*types.RecordAndContext, error),
Expand Down Expand Up @@ -204,7 +204,7 @@ func convert_csv_to_json(

func main() {
options := custom_options()
err := convert_csv_to_json(os.Args[1:], options, custom_record_processor)
err := run_custom_processor(os.Args[1:], options, custom_record_processor)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
}
Expand Down
4 changes: 2 additions & 2 deletions docs/src/miller-as-library/main2.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func custom_options() *cli.TOptions {
}

// This function you don't need to modify.
func convert_csv_to_json(
func run_custom_processor(
fileNames []string,
options *cli.TOptions,
record_processor func (irac *types.RecordAndContext) (*types.RecordAndContext, error),
Expand Down Expand Up @@ -125,7 +125,7 @@ func convert_csv_to_json(

func main() {
options := custom_options()
err := convert_csv_to_json(os.Args[1:], options, custom_record_processor)
err := run_custom_processor(os.Args[1:], options, custom_record_processor)
if err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
}
Expand Down

0 comments on commit 5136507

Please sign in to comment.