Skip to content

Commit

Permalink
Changed method name
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCreeper committed Mar 25, 2015
1 parent 9aa5b5f commit 78889d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
func main() {
ntf, err := notify.NotificationNew("Test Notification", "This is a test notification")
ntf, err := notify.NewNotification("Test Notification", "This is a test notification")
if err != nil {
log.Fatal(err)
Expand Down
2 changes: 1 addition & 1 deletion notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ type Notification struct {
}

// Create a new notification object with some basic information
func NotificationNew(summary, body string) (n *Notification, err error) {
func NewNotification(summary, body string) (n *Notification, err error) {

if len(summary) == 0 {

Expand Down
2 changes: 1 addition & 1 deletion notify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func TestNotificationNew(t *testing.T) {

ntf, err := NotificationNew("Test Notification", "This is a test notification")
ntf, err := NewNotification("Test Notification", "This is a test notification")
if err != nil {

log.Fatal(err)
Expand Down

0 comments on commit 78889d7

Please sign in to comment.