Skip to content

Commit c4050b4

Browse files
author
Ed Page
committed
fix(cli): Clarify API stabiliy
For now, I'm just punting on `typos_cli`s API. Fixes #171
1 parent 21d02bd commit c4050b4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/file.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ impl FileChecker for FoundFiles {
380380
}
381381
}
382382

383-
pub fn read_file(
383+
fn read_file(
384384
path: &std::path::Path,
385385
reporter: &dyn report::Report,
386386
) -> Result<(Vec<u8>, content_inspector::ContentType), std::io::Error> {
@@ -418,7 +418,7 @@ pub fn read_file(
418418
Ok((buffer, content_type))
419419
}
420420

421-
pub fn write_file(
421+
fn write_file(
422422
path: &std::path::Path,
423423
content_type: content_inspector::ContentType,
424424
buffer: Vec<u8>,

src/lib.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
/// `typos_cli`'s API is unstable. Open an issue for starting a discussion on getting a subset
2+
/// stabilized.
3+
4+
#[doc(hidden)]
15
pub mod config;
6+
#[doc(hidden)]
27
pub mod dict;
8+
#[doc(hidden)]
39
pub mod file;
10+
#[doc(hidden)]
411
pub mod policy;
12+
#[doc(hidden)]
513
pub mod report;

0 commit comments

Comments
 (0)