Skip to content

Commit 4747d5b

Browse files
Sylvester Hespeddyb
authored andcommitted
Update crates/spirv-builder/README.md
Co-authored-by: Eduard-Mihai Burtescu <[email protected]>
1 parent f910bc1 commit 4747d5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/spirv-builder/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ It takes care of pulling in the `SPIR-V` backend for Rust, `rustc_codegen_spirv`
1313
```rust
1414
use spirv_builder::{MetadataPrintout, SpirvBuilder};
1515

16-
fn main() {
16+
fn main() -> Result<(), Box<dyn std::error::Error>> {
1717
SpirvBuilder::new("my_shaders", "spirv-unknown-vulkan1.1")
1818
.print_metadata(MetadataPrintout::Full)
19-
.build()
20-
.unwrap();
19+
.build()?;
20+
Ok(())
2121
}
2222
```
2323

0 commit comments

Comments
 (0)