@@ -36,10 +36,10 @@ pub struct Message {
36
36
/// bundle.add_messages("intro = Welcome, { $name }.");
37
37
///
38
38
/// let mut args = HashMap::new();
39
- /// args.insert("name", FluentValue::from("John "));
39
+ /// args.insert("name", FluentValue::from("Rustacean "));
40
40
///
41
41
/// let value = bundle.format("intro", Some(&args));
42
- /// assert_eq!(value, Some(("Welcome, John .".to_string(), vec![])));
42
+ /// assert_eq!(value, Some(("Welcome, Rustacean .".to_string(), vec![])));
43
43
///
44
44
/// ```
45
45
///
@@ -149,7 +149,7 @@ impl<'bundle> FluentBundle<'bundle> {
149
149
/// let mut bundle = FluentBundle::new(&["en-US"]);
150
150
///
151
151
/// // Register a fn that maps from string to string length
152
- /// bundle.add_function("STRLEN", |positional, named | match positional {
152
+ /// bundle.add_function("STRLEN", |positional, _named | match positional {
153
153
/// [Some(FluentValue::String(str))] => Some(FluentValue::Number(str.len().to_string())),
154
154
/// _ => None,
155
155
/// }).unwrap();
@@ -272,10 +272,10 @@ impl<'bundle> FluentBundle<'bundle> {
272
272
/// bundle.add_messages("intro = Welcome, { $name }.");
273
273
///
274
274
/// let mut args = HashMap::new();
275
- /// args.insert("name", FluentValue::from("John "));
275
+ /// args.insert("name", FluentValue::from("Rustacean "));
276
276
///
277
277
/// let value = bundle.format("intro", Some(&args));
278
- /// assert_eq!(value, Some(("Welcome, John .".to_string(), vec![])));
278
+ /// assert_eq!(value, Some(("Welcome, Rustacean .".to_string(), vec![])));
279
279
///
280
280
/// ```
281
281
///
0 commit comments