Skip to content

Commit 18495ba

Browse files
Fix typos in doc and comments (#328)
1 parent a2cef6b commit 18495ba

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

docs/local-testing-firefox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Now we need to upgrade all the dependencies to `fluent-rs` in the Firefox codeba
3939
- [Search for all references](https://searchfox.org/mozilla-central/search?q=%5E%28fluent%28-%5Cw%2B%29%3F%7Cintl-memoizer%29+%3D+%22.*%22&path=&case=false&regexp=true)
4040
- Update all the references to our local packages by using `{ path = "..." }` in the `Cargo.toml` file of the impacted packages.
4141

42-
### Exemple
42+
### Example
4343

4444
If both `fluent-rs` and `mozilla_unified` directories are on the same root directory, you can update the `fluent-fallback` entry from `fluent-fallback = "0.7.0"` to `fluent-fallback = { path = "../../../../../fluent-rs/fluent-fallback" }` in the `mozilla-unified/intl/l10n/rust/l10nregistry-ffi/Cargo.toml` file.
4545

fluent-bundle/examples/custom_formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ key-var-with-arg = Here is a variable formatted with an argument { NUMBER($num,
131131
args.set("num", num);
132132
let value = bundle.format_pattern(pattern, Some(&args), &mut errors);
133133

134-
// Notice, that since we specificed minimum and maximum fraction digits options
134+
// Notice, that since we specified minimum and maximum fraction digits options
135135
// to be 1 and 8 when construction the argument, and then the minimum fraction
136136
// digits option has been overridden in the localization the formatter
137137
// will received options:

fluent-bundle/examples/simple-app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn main() {
107107

108108
// 6. Load the localization resource
109109
for path in L10N_RESOURCES {
110-
let mut full_path = env::current_dir().expect("Failed to retireve current dir.");
110+
let mut full_path = env::current_dir().expect("Failed to retrieve current dir.");
111111
if full_path.to_string_lossy().ends_with("fluent-rs") {
112112
full_path.push("fluent-bundle");
113113
}

fluent-bundle/src/bundle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ impl<R, M> FluentBundle<R, M> {
336336
/// be called on all textual fragments of the pattern
337337
/// during formatting.
338338
///
339-
/// This is currently primarly used for pseudolocalization,
339+
/// This is currently primarily used for pseudolocalization,
340340
/// and `fluent-pseudo` crate provides a function
341341
/// that can be passed here.
342342
pub fn set_transform(&mut self, func: Option<fn(&str) -> Cow<str>>) {

fluent-fallback/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
//! assert_eq!(value, Some("Hello World [en]".into()));
4949
//! ```
5050
//!
51-
//! The above example is far from the ergonomical API style the Fluent project
51+
//! The above example is far from the ergonomic API style the Fluent project
5252
//! is aiming for, but it represents the full scope of functionality intended
5353
//! for the model.
5454
//!
@@ -96,7 +96,7 @@
9696
//! As a long lived structure, the [`Localization`] is intended to handle runtime locale
9797
//! management.
9898
//!
99-
//! In the example above, [`Vec<LagnuageIdentifier>`](unic_langid::LanguageIdentifier)
99+
//! In the example above, [`Vec<LanguageIdentifier>`](unic_langid::LanguageIdentifier)
100100
//! provides a static list of locales that the [`Localization`] handles, but that's just the
101101
//! simplest implementation of the [`env::LocalesProvider`], and one can implement
102102
//! a much more sophisticated one that reacts to user or environment driven changes, and

fluent-syntax/src/ast/helper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize};
33

44
use super::Comment;
55
// This is a helper struct used to properly deserialize referential
6-
// JSON comments which are single continous String, into a vec of
6+
// JSON comments which are single continuous String, into a vec of
77
// content slices.
88
#[derive(Debug, PartialEq, Eq, Clone)]
99
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]

fluent-syntax/src/ast/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
//!
7979
//! ## Errors
8080
//!
81-
//! Fluent AST preserves blocks containing invaid syntax as [`Entry::Junk`].
81+
//! Fluent AST preserves blocks containing invalid syntax as [`Entry::Junk`].
8282
//!
8383
//! ## White space
8484
//!

fluent-syntax/src/serializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Fluent Translation List serialization utilities
22
//!
33
//! This modules provides a way to serialize an abstract syntax tree representing a
4-
//! Fluent Translation List. Use cases include normalization and programmatical
4+
//! Fluent Translation List. Use cases include normalization and programmatic
55
//! manipulation of a Fluent Translation List.
66
//!
77
//! # Example

fluent-syntax/src/unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! Literals`](super::ast::InlineExpression::StringLiteral).
88
//!
99
//! Four byte sequences are encoded with `\u` and six byte
10-
//! sqeuences using `\U`.
10+
//! sequences using `\U`.
1111
//! ## Example
1212
//!
1313
//! ```

intl-memoizer/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! This crate contains a memoizer for internationalization formatters. Often it is
2-
//! expensive (in terms of performance and memory) to constuct a formatter, but then
2+
//! expensive (in terms of performance and memory) to construct a formatter, but then
33
//! relatively cheap to run the format operation.
44
//!
55
//! The [IntlMemoizer] is the main struct that creates a per-locale [IntlLangMemoizer].
@@ -289,7 +289,7 @@ impl IntlLangMemoizer {
289289
/// let construct_args = (String::from("prefix:"),);
290290
/// let message = "The format operation will run";
291291
///
292-
/// // Use the `ExampleFormater` from the `IntlLangMemoizer` example. It returns a
292+
/// // Use the `ExampleFormatter` from the `IntlLangMemoizer` example. It returns a
293293
/// // string that demonstrates the configuration of the formatter. This step will
294294
/// // construct a new formatter if needed, and run the format operation.
295295
/// //

0 commit comments

Comments
 (0)