From 67773bd2a0620aabf87c486c1aa0c94ef3eac1a7 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Sun, 30 Apr 2017 15:46:38 +0200 Subject: [PATCH] Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d890ed..40221d0 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,11 @@ I don't expect any big changes anymore. The library will still remain < 1.0 unti ### Explicit returns with `Result` Functions return a `type VkResult = Result` instead of an error code. No mutable references for the output are required. ```Rust +// function signature pub fn create_instance(&self, create_info: &vk::InstanceCreateInfo, allocation_callbacks: Option<&vk::AllocationCallbacks>) - -> Result { + -> Result { .. } let instance = entry.create_instance(&create_info, None) .expect("Instance creation error"); ```