Skip to content
Browse files

Tweaking comments & docs

  • Loading branch information...
1 parent 5dd1a0c commit d63985fb6af0d45e2a65a38a72cf69695e46a3f7 @caius caius committed Apr 12, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 Readme.md
  2. +2 −2 ext/cuuid/cuuid.c
View
2 Readme.md
@@ -12,6 +12,8 @@ Or if you've required `"cuuid/uuid"` then you can just do
## Installation
+It'll work out the box on OS X. Ubuntu requires `uuid-dev` apt package installing.
+
Rubygem install:
gem install cuuid
View
4 ext/cuuid/cuuid.c
@@ -10,7 +10,7 @@ void Init_cuuid();
// Prototype CUUID.generate
VALUE method_generate();
-// Define CUUID and the fact it has a class method called uuid1
+// Define CUUID and the fact it has a class method called generate
void Init_cuuid() {
CUUID = rb_define_module("CUUID");
int arg_count = 0;
@@ -22,8 +22,8 @@ VALUE method_generate(VALUE self) {
uuid_t uuid_id;
char uuid_str[128];
+ // Generate UUID and grab string version of it
uuid_generate(uuid_id);
-
uuid_unparse(uuid_id, uuid_str);
// Cast it into a ruby string and return it

0 comments on commit d63985f

Please sign in to comment.
Something went wrong with that request. Please try again.