Repository: brendanzab/gl-rs (language: rust)

Issue:
The README for gl_generator is wrong
https://github.com/bjz/gl-rs#using-gl_generator
- There's no need to import libc and std::mem
- Missing quotes around arguments



Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index cba66fb8..588ad6a7 100644
--- a/README.md
+++ b/README.md
@@ -83,18 +83,16 @@ Then use it like this:
 ~~~rust
 #[phase(plugin)]
 extern crate gl_generator;
-extern crate libc;
 
-use std::mem;
 use self::types::*;
 
 generate_gl_bindings! {
-    api: gl,
-    profile: core,
-    version: 4.5,
-    generator: global,
+    api: "gl",
+    profile: "core",
+    version: "4.5",
+    generator: "global",
     extensions: [
-        GL_EXT_texture_filter_anisotropic,
+        "GL_EXT_texture_filter_anisotropic",
     ],
 }
 ~~~
diff --git a/src/gl_generator/lib.rs b/src/gl_generator/lib.rs
index 871d63a9..1b1fcd26 100644
--- a/src/gl_generator/lib.rs
+++ b/src/gl_generator/lib.rs
@@ -24,18 +24,16 @@
 //! ~~~rust
 //! #[phase(plugin)]
 //! extern crate gl_generator;
-//! extern crate libc;
 //!
-//! use std::mem;
 //! use self::types::*;
 //!
 //! generate_gl_bindings! {
-//!     api: gl,
-//!     profile: core,
-//!     version: 4.5,
-//!     generator: global,
+//!     api: "gl",
+//!     profile: "core",
+//!     version: "4.5",
+//!     generator: "global",
 //!     extensions: [
-//!         GL_EXT_texture_filter_anisotropic,
+//!         "GL_EXT_texture_filter_anisotropic",
 //!     ],
 //! }
 //! ~~~


Test patch: