Skip to content

Commit

Permalink
fix a few function names on comments (#427)
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <imcusg@gmail.com>
  • Loading branch information
cuishuang authored Aug 31, 2023
1 parent 68633c9 commit c9e9adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions starlark/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func StartProfile(w io.Writer) error {
return nil
}

// StopProfiler stops the profiler started by a prior call to
// StopProfile stops the profiler started by a prior call to
// StartProfile and finalizes the profile. It returns an error if the
// profile could not be completed.
//
// StopProfiler must not be called concurrently with Starlark execution.
// StopProfile must not be called concurrently with Starlark execution.
func StopProfile() error {
// Terminate the profiler goroutine and get its result.
close(profiler.events)
Expand Down

0 comments on commit c9e9adf

Please sign in to comment.