Skip to content
Snippets Groups Projects

book: Use the expected syntax in the select1 example.

Merged Nick Mathewson requested to merge nickm/rust-derive-adhoc:select1-syntax into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -123,7 +123,7 @@ but not both:
# pub fn
${select1
tmeta(constructor(newfn)) { ${tmeta(constructor(newfn))} }
tmeta(constructor(default_name)) { new }
else if tmeta(constructor(default_name)) { new }
else { new }
}
# () {}
Loading