Browse Source

Fix some docstring typos

Thurloat 11 years ago
parent
commit
0172676451

+ 1 - 1
src/ngrok/client/config.go

@@ -194,7 +194,7 @@ func LoadConfiguration(opts *Options) (config *Configuration, err error) {
 func defaultPath() string {
 func defaultPath() string {
 	user, err := user.Current()
 	user, err := user.Current()
 
 
-	// user.Current() does not work on linux when cross compilling because
+	// user.Current() does not work on linux when cross compiling because
 	// it requires CGO; use os.Getenv("HOME") hack until we compile natively
 	// it requires CGO; use os.Getenv("HOME") hack until we compile natively
 	homeDir := os.Getenv("HOME")
 	homeDir := os.Getenv("HOME")
 	if err != nil {
 	if err != nil {

+ 1 - 1
src/ngrok/client/controller.go

@@ -40,7 +40,7 @@ type Controller struct {
 	// the views
 	// the views
 	views []mvc.View
 	views []mvc.View
 
 
-	// interal structure to issue commands to the controller
+	// internal structure to issue commands to the controller
 	cmds chan command
 	cmds chan command
 
 
 	// internal structure to synchronize access to State object
 	// internal structure to synchronize access to State object

+ 1 - 1
src/ngrok/client/model.go

@@ -175,7 +175,7 @@ func (c *ClientModel) Run() {
 		// run the control channel
 		// run the control channel
 		c.control()
 		c.control()
 
 
-		// control oonly returns when a failure has occurred, so we're going to try to reconnect
+		// control only returns when a failure has occurred, so we're going to try to reconnect
 		if c.connStatus == mvc.ConnOnline {
 		if c.connStatus == mvc.ConnOnline {
 			wait = 1 * time.Second
 			wait = 1 * time.Second
 		}
 		}

+ 2 - 2
src/ngrok/client/views/web/http.go

@@ -1,4 +1,4 @@
-// interative web user interface
+// interactive web user interface
 package web
 package web
 
 
 import (
 import (
@@ -144,7 +144,7 @@ func makeBody(h http.Header, body []byte) SerializedBody {
 
 
 func (whv *WebHttpView) updateHttp() {
 func (whv *WebHttpView) updateHttp() {
 	// open channels for incoming http state changes
 	// open channels for incoming http state changes
-	// and broadbasts
+	// and broadcasts
 	txnUpdates := whv.httpProto.Txns.Reg()
 	txnUpdates := whv.httpProto.Txns.Reg()
 	for txn := range txnUpdates {
 	for txn := range txnUpdates {
 		// XXX: it's not safe for proto.Http and this code
 		// XXX: it's not safe for proto.Http and this code

+ 2 - 2
src/ngrok/client/views/web/view.go

@@ -1,4 +1,4 @@
-// interative web user interface
+// interactive web user interface
 package web
 package web
 
 
 import (
 import (
@@ -17,7 +17,7 @@ type WebView struct {
 
 
 	ctl mvc.Controller
 	ctl mvc.Controller
 
 
-	// messages sent over this broadcast are sent too all websocket connections
+	// messages sent over this broadcast are sent to all websocket connections
 	wsMessages *util.Broadcast
 	wsMessages *util.Broadcast
 }
 }