Skip to content

Commit

Permalink
clippy: Update doc comment to avoid a bug of clippy 1.48.0
Browse files Browse the repository at this point in the history
clippy 1.48.0 has a bug in string parsing in doc comments.
rust-lang/rust-clippy#6022

To avoid this issue, update to use double-quotation instead of single-quotation
inside a code block in a doc comment.

Also, this fixes wrong examples of commands there at the same time.

BUG=none
TEST=bin/clippy

Change-Id: I90e5699f6d4e839304f9d4e05e5c7b21467744cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2592001
Tested-by: Keiichi Watanabe <[email protected]>
Reviewed-by: Chirantan Ekbote <[email protected]>
Commit-Queue: Keiichi Watanabe <[email protected]>
  • Loading branch information
keiichiw authored and Commit Bot committed Dec 15, 2020
1 parent a9bfcb4 commit 39d9542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devices/src/virtio/video/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
//! --with-derive-default \
//! --no-layout-tests \
//! --no-prepend-enum-name > protocol.rs
//! $ sed -i 's/u/u/g' protocol.rs
//! $ sed -i 's/Le/Le/g' protocol.rs
//! $ sed -i "s/__u/u/g" protocol.rs
//! $ sed -i "s/__le/Le/g" protocol.rs
//! ```
//!
//! The main points of the manual modifications are as follows:
Expand Down

0 comments on commit 39d9542

Please sign in to comment.