Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
robertbastian committed Apr 27, 2022
1 parent 87f2bd4 commit 3b6f796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions provider/datagen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ use std::fs::File;
use std::path::PathBuf;

fn main() {
datagen(
icu_datagen::datagen(
Some(&[langid!("de"), langid!("en-AU")]),
&get_all_keys(),
&icu_datagen::keys(&["list/and@1"]),
&SourceData::default().with_uprops(PathBuf::from("/path/to/uprops/root")),
Out::Blob(Box::new(File::create("data.postcard").unwrap())),
false,
Expand Down
6 changes: 3 additions & 3 deletions provider/datagen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
//! use std::path::PathBuf;
//!
//! fn main() {
//! datagen(
//! icu_datagen::datagen(
//! Some(&[langid!("de"), langid!("en-AU")]),
//! &get_all_keys(),
//! &icu_datagen::keys(&["list/and@1"]),
//! &SourceData::default().with_uprops(PathBuf::from("/path/to/uprops/root")),
//! Out::Blob(Box::new(File::create("data.postcard").unwrap())),
//! false,
Expand Down Expand Up @@ -148,7 +148,7 @@ pub enum Out {
/// * `sources`: The underlying source data. CLDR and/or uprops data can be missing if no
/// requested key requires them. Otherwise a error will be returned that can be identified
/// with [`is_missing_cldr_error`] or [`is_missing_uprops_error`].
/// * `out`: See the documentation on [`Out`]
/// * `out`: The output format and location. See the documentation on [`Out`]
/// * `ignore_missing_resource_keys`: some keys are not supported by datagen yet. Using
/// all keys will not work unless this option is set.
pub fn datagen(
Expand Down

0 comments on commit 3b6f796

Please sign in to comment.