Skip to content

Commit

Permalink
Minor documentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSjoding committed Mar 7, 2019
1 parent 98700d4 commit 08e348d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package comshim provides a mechanism for maintaining an initialized
// multi-threaded component object model compartment.
// multi-threaded component object model apartment.
//
// When working with mutli-threaded compartments, COM requires at least one
// When working with mutli-threaded apartments, COM requires at least one
// thread to be initialized, otherwise COM-allocated resources may be released
// prematurely. This poses a challenge in Go, which can have many goroutines
// running in parallel with weak thread affinity.
Expand All @@ -13,7 +13,7 @@
// counter reaches 0, the thread is released and COM may be deinitialized.
//
// The comshim package is designed to allow COM-based libraries to hide the
// threading requirements of COM from the user. COM interafces can be hidden
// threading requirements of COM from the user. COM interfaces can be hidden
// behind idomatic Go structures that increment the counter with calls to
// NewType() and decrement the counter with calls to Type.Close(). To see
// how this is done, take a look at the WrapperUsage example.
Expand Down
2 changes: 1 addition & 1 deletion example_global_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "github.com/scjalliance/comshim"

func Example_globalUsage() {
// This ensures that at least one thread maintains an initialized
// mutli-threaded COM compartment.
// mutli-threaded COM apartment.
comshim.Add(1)

// After we're done using COM the thread will be released.
Expand Down

0 comments on commit 08e348d

Please sign in to comment.