Skip to content

Commit

Permalink
Merge pull request #44 from cfergeau/apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Hex authored Sep 8, 2022
2 parents 0cfa3c6 + 8ddcc06 commit 7e88b20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions virtualization.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func (v *VirtualMachine) Start(fn func(error)) {
// Pause a virtual machine that is in Running state.
//
// - fn parameter called after the virtual machine has been successfully paused or on error.
// The error parameter passed to the block is null if the start was successful.
// The error parameter passed to the block is null if the pause was successful.
func (v *VirtualMachine) Pause(fn func(error)) {
h, done := makeHandler(fn)
handler := cgo.NewHandle(h)
Expand All @@ -262,7 +262,7 @@ func (v *VirtualMachine) Resume(fn func(error)) {
// RequestStop requests that the guest turns itself off.
//
// If returned error is not nil, assigned with the error if the request failed.
// Returens true if the request was made successfully.
// Returns true if the request was made successfully.
func (v *VirtualMachine) RequestStop() (bool, error) {
nserr := newNSErrorAsNil()
nserrPtr := nserr.Ptr()
Expand Down
2 changes: 1 addition & 1 deletion virtualization.m
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void setStreamsVZVirtioSoundDeviceConfiguration(void *audioDeviceConfiguration,
@param filePath The path of the file for the attachment on the local file system.
@param shouldAppend True if the file should be opened in append mode, false otherwise.
When a file is opened in append mode, writing to that file will append to the end of it.
@param error If not nil, used to report errors if intialization fails.
@param error If not nil, used to report errors if initialization fails.
@return A VZFileSerialPortAttachment on success. Nil otherwise and the error parameter is populated if set.
*/
void *newVZFileSerialPortAttachment(const char *filePath, bool shouldAppend, void **error)
Expand Down

0 comments on commit 7e88b20

Please sign in to comment.