Skip to content

Commit d2d6ee2

Browse files
committed
Updated docs
1 parent 6b1bf8f commit d2d6ee2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/writing-shader-crates.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Paste the following into `build.rs`
5252
```rust,no_run
5353
use spirv_builder::{MetadataPrintout, SpirvBuilder};
5454

55-
fn main() {
55+
fn main() -> Result<(), Box<dyn std::error::Error>> {
5656
SpirvBuilder::new(shader_crate, target)
5757
.print_metadata(MetadataPrintout::Full)
58-
.build()
59-
.unwrap();
58+
.build()?;
59+
Ok(())
6060
}
6161
```
6262

0 commit comments

Comments
 (0)