Update Examples

Glen Whitney 2024-08-24 04:46:28 +00:00
parent b319018f6d
commit b5b3831993

@ -387,7 +387,7 @@ enum WebEvent
Paste(String),
// or like structures.
Click
x: i64, y: i64
x, y: i64
fn inspect(event: WebEvent)
match event // Note variant auto-import
@ -403,6 +403,7 @@ fn inspect(event: WebEvent)
fn main()
let pressed = WebEvent::KeyPress 'x'
pasted = WebEvent::Paste s"my text"