Skip to content

Commit

Permalink
format_code_in_doc_comments = true
Browse files Browse the repository at this point in the history
Summary: D52632085

Reviewed By: zertosh

Differential Revision: D52639960

fbshipit-source-id: c659c45c7b1752b556ffce3d1ee65faed01b8e87
  • Loading branch information
stepancheg authored and facebook-github-bot committed Jan 10, 2024
1 parent fe511dc commit b9200ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions common/src/timer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use wasm_timer::Instant;
/// ```
/// use common::timer;
/// let mut t = timer::Timer::new("my method");
/// let values = vec![1,2,3];
/// let values = vec![1, 2, 3];
/// // would send to log info a message like:
/// // [my method | read input size: 3] elapsed 0.231 sec [qps: 2314]
/// t.qps("read input", values.len());
Expand Down Expand Up @@ -126,11 +126,11 @@ impl Timer {
///
/// ```
/// use common::timer;
/// { // execution block to meter RAII
/// {
/// // execution block to meter RAII
/// let mut timer = timer::Timer::new("my method");
/// timer.set_extra_label("perf");
/// timer.set_size(100);
///
/// } // on exiting the execution block the timer will fire
/// ```
pub fn new(label: &str) -> Timer {
Expand Down
9 changes: 6 additions & 3 deletions crypto/src/eccipher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,17 @@ impl Default for ECRistrettoSequential {
///
/// ```
/// extern crate curve25519_dalek;
/// use rand_core::OsRng;
/// use curve25519_dalek::scalar::Scalar;
/// use crypto::eccipher;
/// use curve25519_dalek::scalar::Scalar;
/// use rand_core::OsRng;
/// let mut rng = OsRng;
/// let (key, power) = (Scalar::random(&mut rng), Scalar::random(&mut rng));
/// let eccipher = eccipher::ECRistrettoParallel::default();
///
/// let text = vec!["a", "b", "c"].iter().map(|x| String::from(*x)).collect::<Vec<_>>();
/// let text = vec!["a", "b", "c"]
/// .iter()
/// .map(|x| String::from(*x))
/// .collect::<Vec<_>>();
/// ```
pub struct ECRistrettoParallel {}

Expand Down

0 comments on commit b9200ff

Please sign in to comment.