Permalink
Browse files

some comments

  • Loading branch information...
1 parent 5a263bb commit 4f7fae9da9a5c13bed2b7a855e40feca452658e9 @tebeka tebeka committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 2013/import-c/err.go
  2. +1 −1 2013/import-c/snowball.go
@@ -11,7 +11,7 @@ import (
func main() {
i, err := C.sqrt(-1)
if err != nil {
- fmt.Printf("error: %s\n", err)
+ fmt.Printf("error: %s\n", err) // Go will use strerror for message
}
fmt.Printf("i = %v\n", i)
}
@@ -42,7 +42,7 @@ func New(lang string) (*Stemmer, error) {
return nil, fmt.Errorf("can't create stemmer for lang %s", lang)
}
- runtime.SetFinalizer(stmr, free)
+ runtime.SetFinalizer(stmr, free) // Free C memory when GCed
return stmr, nil
}

0 comments on commit 4f7fae9

Please sign in to comment.