src: escape non-link [] in rustdoc

Fix a broken_intra_doc_links warning:

  warning: unresolved link to `ARGUMENTS`
  the module `argument` contains no item named `ARGUMENTS`

BUG=None
TEST=cargo doc --all-features

Change-Id: I678aa5dd9ede33879b2725e5a53411cad38d8a65
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2762063
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2021-03-15 13:04:55 -07:00 committed by Commit Bot
parent 2494889d28
commit 89e64c0d2e

View file

@ -364,7 +364,7 @@ where
/// Prints command line usage information to stdout.
///
/// Usage information is printed according to the help fields in `args` with a leading usage line.
/// The usage line is of the format "`program_name` [ARGUMENTS] `required_arg`".
/// The usage line is of the format "`program_name` \[ARGUMENTS\] `required_arg`".
pub fn print_help(program_name: &str, required_arg: &str, args: &[Argument]) {
println!(
"Usage: {} {}{}\n",