Skip to content

Commit 7ac62d0

Browse files
kianmengbomgar
authored andcommitted
docs: fix typos
Found via `typos --hidden --format brief`
1 parent d1bfd1f commit 7ac62d0

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Available in package managers:
132132
## Log tailing
133133

134134
`fblog` does not support native log tailing but this is easily
135-
achiveable.
135+
achievable.
136136

137137
``` bash
138138
tail -f file | fblog

src/filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ mod tests {
8787

8888
fn test_log_entry() -> Map<String, Value> {
8989
let mut map = Map::new();
90-
map.insert("message".to_string(), Value::String("something happend".to_string()));
90+
map.insert("message".to_string(), Value::String("something happened".to_string()));
9191
map.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
9292
map.insert("process".to_string(), Value::String("rust".to_string()));
9393
map.insert("fu".to_string(), Value::String("bower".to_string()));

src/log.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ mod tests {
176176
let log_settings = LogSettings::new_default_settings();
177177
let mut out: Vec<u8> = Vec::new();
178178
let mut log_entry: Map<String, Value> = Map::new();
179-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
179+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
180180
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
181181
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
182182
log_entry.insert("level".to_string(), Value::String("info".to_string()));
183183

184184
print_log_line(&mut out, None, &log_entry, &log_settings, &handlebars);
185185

186-
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: something happend\n");
186+
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: something happened\n");
187187
}
188188

189189
#[test]
@@ -194,14 +194,14 @@ mod tests {
194194

195195
let mut out: Vec<u8> = Vec::new();
196196
let mut log_entry: Map<String, Value> = Map::new();
197-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
197+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
198198
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
199199
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
200200
log_entry.insert("level".to_string(), Value::String("30".to_string()));
201201

202202
print_log_line(&mut out, None, &log_entry, &log_settings, &handlebars);
203203

204-
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: something happend\n");
204+
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: something happened\n");
205205
}
206206

207207
#[test]
@@ -211,22 +211,22 @@ mod tests {
211211
let mut out: Vec<u8> = Vec::new();
212212
let prefix = "abc";
213213
let mut log_entry: Map<String, Value> = Map::new();
214-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
214+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
215215
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
216216
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
217217
log_entry.insert("level".to_string(), Value::String("info".to_string()));
218218

219219
print_log_line(&mut out, Some(prefix), &log_entry, &log_settings, &handlebars);
220220

221-
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: abc something happend\n");
221+
assert_eq!(out_to_string(out), "2017-07-06T15:21:16 INFO: abc something happened\n");
222222
}
223223

224224
#[test]
225225
fn write_log_entry_with_additional_field() {
226226
let handlebars = fblog_handlebar_registry_default_format();
227227
let mut out: Vec<u8> = Vec::new();
228228
let mut log_entry: Map<String, Value> = Map::new();
229-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
229+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
230230
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
231231
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
232232
log_entry.insert("fu".to_string(), Value::String("bower".to_string()));
@@ -239,7 +239,7 @@ mod tests {
239239
assert_eq!(
240240
out_to_string(out),
241241
"\
242-
2017-07-06T15:21:16 INFO: something happend
242+
2017-07-06T15:21:16 INFO: something happened
243243
process: rust
244244
fu: bower
245245
"
@@ -251,7 +251,7 @@ mod tests {
251251
let handlebars = fblog_handlebar_registry_default_format();
252252
let mut out: Vec<u8> = Vec::new();
253253
let mut log_entry: Map<String, Value> = Map::new();
254-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
254+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
255255
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
256256
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
257257
log_entry.insert("fu".to_string(), Value::String("bower".to_string()));
@@ -266,7 +266,7 @@ mod tests {
266266
assert_eq!(
267267
out_to_string(out),
268268
"\
269-
2017-07-06T15:21:16 INFO: abc something happend
269+
2017-07-06T15:21:16 INFO: abc something happened
270270
process: rust
271271
fu: bower
272272
"
@@ -278,7 +278,7 @@ mod tests {
278278
let handlebars = fblog_handlebar_registry_default_format();
279279
let mut out: Vec<u8> = Vec::new();
280280
let mut log_entry: Map<String, Value> = Map::new();
281-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
281+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
282282
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
283283
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
284284
log_entry.insert("fu".to_string(), Value::String("bower".to_string()));
@@ -291,10 +291,10 @@ mod tests {
291291
assert_eq!(
292292
out_to_string(out),
293293
"\
294-
2017-07-06T15:21:16 INFO: something happend
294+
2017-07-06T15:21:16 INFO: something happened
295295
fu: bower
296296
level: info
297-
message: something happend
297+
message: something happened
298298
process: rust
299299
time: 2017-07-06T15:21:16
300300
"
@@ -307,7 +307,7 @@ mod tests {
307307
let mut log_settings = LogSettings::new_default_settings();
308308
let mut out: Vec<u8> = Vec::new();
309309
let mut log_entry: Map<String, Value> = Map::new();
310-
log_entry.insert("message".to_string(), Value::String("something happend".to_string()));
310+
log_entry.insert("message".to_string(), Value::String("something happened".to_string()));
311311
log_entry.insert("time".to_string(), Value::String("2017-07-06T15:21:16".to_string()));
312312
log_entry.insert("process".to_string(), Value::String("rust".to_string()));
313313
log_entry.insert("moep".to_string(), Value::String("moep".to_string()));

0 commit comments

Comments
 (0)