Skip to content

Commit fdf566b

Browse files
committed
language is already default to rust
Signed-off-by: tison <wander4096@gmail.com>
1 parent dd7cd24 commit fdf566b

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

datasketches/src/bloom/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//!
3131
//! # Usage
3232
//!
33-
//! ```rust
33+
//! ```
3434
//! use datasketches::bloom::BloomFilter;
3535
//! use datasketches::bloom::BloomFilterBuilder;
3636
//!
@@ -60,7 +60,7 @@
6060
//!
6161
//! Automatically calculates optimal size and hash functions:
6262
//!
63-
//! ```rust
63+
//! ```
6464
//! # use datasketches::bloom::BloomFilterBuilder;
6565
//! let filter = BloomFilterBuilder::with_accuracy(
6666
//! 10_000, // Expected max items
@@ -74,7 +74,7 @@
7474
//!
7575
//! Specify requested bit count and hash functions (rounded up to a multiple of 64 bits):
7676
//!
77-
//! ```rust
77+
//! ```
7878
//! # use datasketches::bloom::BloomFilterBuilder;
7979
//! let filter = BloomFilterBuilder::with_size(
8080
//! 95_851, // Number of bits
@@ -87,7 +87,7 @@
8787
//!
8888
//! Bloom filters support efficient set operations:
8989
//!
90-
//! ```rust
90+
//! ```
9191
//! # use datasketches::bloom::BloomFilterBuilder;
9292
//! let mut filter1 = BloomFilterBuilder::with_accuracy(100, 0.01).build();
9393
//! let mut filter2 = BloomFilterBuilder::with_accuracy(100, 0.01).build();

datasketches/src/countmin/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
//!
2323
//! # Usage
2424
//!
25-
//! ```rust
25+
//! ```
2626
//! # use datasketches::countmin::CountMinSketch;
2727
//! let mut sketch = CountMinSketch::<i64>::new(5, 256);
2828
//! sketch.update("apple");
@@ -32,7 +32,7 @@
3232
//!
3333
//! # Configuration Helpers
3434
//!
35-
//! ```rust
35+
//! ```
3636
//! # use datasketches::countmin::CountMinSketch;
3737
//! let buckets = CountMinSketch::<i64>::suggest_num_buckets(0.01);
3838
//! let hashes = CountMinSketch::<i64>::suggest_num_hashes(0.99);

datasketches/src/countmin/sketch.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
6262
///
6363
/// # Examples
6464
///
65-
/// ```rust
65+
/// ```
6666
/// # use datasketches::countmin::CountMinSketch;
6767
/// let sketch = CountMinSketch::<i64>::new(4, 128);
6868
/// assert_eq!(sketch.num_buckets(), 128);
@@ -83,7 +83,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
8383
///
8484
/// # Examples
8585
///
86-
/// ```rust
86+
/// ```
8787
/// # use datasketches::countmin::CountMinSketch;
8888
/// let sketch = CountMinSketch::<i64>::with_seed(4, 64, 42);
8989
/// assert_eq!(sketch.seed(), 42);
@@ -154,7 +154,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
154154
///
155155
/// # Examples
156156
///
157-
/// ```rust
157+
/// ```
158158
/// # use datasketches::countmin::CountMinSketch;
159159
/// let mut sketch = CountMinSketch::<i64>::new(4, 128);
160160
/// sketch.update("apple");
@@ -168,7 +168,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
168168
///
169169
/// # Examples
170170
///
171-
/// ```rust
171+
/// ```
172172
/// # use datasketches::countmin::CountMinSketch;
173173
/// let mut sketch = CountMinSketch::<i64>::new(4, 128);
174174
/// sketch.update_with_weight("banana", 3);
@@ -192,7 +192,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
192192
///
193193
/// # Examples
194194
///
195-
/// ```rust
195+
/// ```
196196
/// # use datasketches::countmin::CountMinSketch;
197197
/// let mut sketch = CountMinSketch::<i64>::new(4, 128);
198198
/// sketch.update_with_weight("pear", 2);
@@ -232,7 +232,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
232232
///
233233
/// # Examples
234234
///
235-
/// ```rust
235+
/// ```
236236
/// # use datasketches::countmin::CountMinSketch;
237237
/// let mut left = CountMinSketch::<i64>::new(4, 128);
238238
/// let mut right = CountMinSketch::<i64>::new(4, 128);
@@ -262,7 +262,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
262262
///
263263
/// # Examples
264264
///
265-
/// ```rust
265+
/// ```
266266
/// # use datasketches::countmin::CountMinSketch;
267267
/// # let mut sketch = CountMinSketch::<i64>::new(4, 128);
268268
/// # sketch.update("apple");
@@ -307,7 +307,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
307307
///
308308
/// # Examples
309309
///
310-
/// ```rust
310+
/// ```
311311
/// # use datasketches::countmin::CountMinSketch;
312312
/// # let mut sketch = CountMinSketch::<i64>::new(4, 64);
313313
/// # sketch.update("apple");
@@ -323,7 +323,7 @@ impl<T: CountMinValue> CountMinSketch<T> {
323323
///
324324
/// # Examples
325325
///
326-
/// ```rust
326+
/// ```
327327
/// # use datasketches::countmin::CountMinSketch;
328328
/// # let mut sketch = CountMinSketch::<i64>::with_seed(4, 64, 7);
329329
/// # sketch.update("apple");
@@ -417,7 +417,7 @@ impl<T: UnsignedCountMinValue> CountMinSketch<T> {
417417
///
418418
/// # Examples
419419
///
420-
/// ```rust
420+
/// ```
421421
/// # use datasketches::countmin::CountMinSketch;
422422
/// let mut sketch = CountMinSketch::<u64>::new(4, 128);
423423
/// sketch.update_with_weight("apple", 3);
@@ -438,7 +438,7 @@ impl<T: UnsignedCountMinValue> CountMinSketch<T> {
438438
///
439439
/// # Examples
440440
///
441-
/// ```rust
441+
/// ```
442442
/// # use datasketches::countmin::CountMinSketch;
443443
/// let mut sketch = CountMinSketch::<u64>::new(4, 128);
444444
/// sketch.update_with_weight("apple", 3);

datasketches/src/hll/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
//!
7575
//! # Usage
7676
//!
77-
//! ```rust
77+
//! ```
7878
//! # use datasketches::hll::HllSketch;
7979
//! # use datasketches::hll::HllType;
8080
//! # use datasketches::common::NumStdDev;
@@ -86,7 +86,7 @@
8686
//!
8787
//! # Union
8888
//!
89-
//! ```rust
89+
//! ```
9090
//! # use datasketches::hll::HllSketch;
9191
//! # use datasketches::hll::HllType;
9292
//! # use datasketches::hll::HllUnion;

datasketches/src/tdigest/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
//!
5151
//! # Usage
5252
//!
53-
//! ```rust
53+
//! ```
5454
//! # use datasketches::tdigest::TDigestMut;
5555
//! let mut sketch = TDigestMut::new(100);
5656
//! sketch.update(1.0);

datasketches/src/theta/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//!
3333
//! # Usage
3434
//!
35-
//! ```rust
35+
//! ```
3636
//! # use datasketches::theta::ThetaSketch;
3737
//! let mut sketch = ThetaSketch::builder().build();
3838
//! sketch.update("apple");

0 commit comments

Comments
 (0)