Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which slice pattern accepts exactly a command name followed by one argument?" on CodeWiki (https://codewiki.com/practice/mcq/rust/pattern-matching/exact-slice-shape/).
Context (verbatim from the page):
"""
Which slice pattern accepts exactly a command name followed by one argument?
[command, argument]
[command, argument, ..]
[command, .., argument]
[..]
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Rust. Where you are unsure, say so.