Skip to content

Commit

Permalink
Fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
maximal authored and m1kc committed Apr 15, 2024
1 parent 03a73e8 commit 24a0dcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/kv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ impl Database {

/// Supported glob-style patterns:
///
/// * `h?llo` matches `hello`, `hallo` and `hxllo`
/// * `h*llo` matches `hllo` and `heeeello`
/// * `h[ae]llo` matches `hello` and `hallo`, but not `hillo`
/// * `h[^e]llo` matches `hallo`, `hbllo`, ... but not `hello`
/// * `h[a-b]llo` matches `hallo` and `hbllo`
/// * `h?llo` matches `hello`, `hallo` and `hxllo`
/// * `h*llo` matches `hllo` and `heeeello`
/// * `h[ae]llo` matches `hello` and `hallo`, but not `hillo`
/// * `h[^e]llo` matches `hallo`, `hbllo`, ... but not `hello`
/// * `h[a-b]llo` matches `hallo` and `hbllo`
pub fn search_keys(&self, pattern: &[u8]) -> Vec<Vec<u8>> {
let keys = self.data.keys().cloned();
match pattern {
Expand Down

0 comments on commit 24a0dcf

Please sign in to comment.