What is this question mark operator about?

I’m reading the documentation for File:

//..
let mut file = File::create("foo.txt")?;
//..

What is the ? in this line? I do not recall seeing it in the Rust Book before.

3 Answers
3

Leave a Comment