mirror of
https://github.com/XAMPPRocky/tokei.git
synced 2026-10-12 02:10:16 +00:00
Update get_config documentation
This commit is contained in:
+4
-3
@@ -40,9 +40,10 @@ pub struct Config {
|
||||
}
|
||||
|
||||
impl Config {
|
||||
/// Get either `tokei.toml` or `.tokeirc`. `tokei.toml` takes precedence
|
||||
/// over `.tokeirc` as the latter is a hidden file on Unix and not idiomatic
|
||||
/// on Windows.
|
||||
/// Constructs a new `Config` from either `$base/tokei.toml` or
|
||||
/// `$base/.tokeirc`. `tokei.toml` takes precedence over `.tokeirc`
|
||||
/// as the latter is a hidden file on Unix and not an idiomatic
|
||||
/// filename on Windows.
|
||||
fn get_config(base: PathBuf) -> Option<Self> {
|
||||
fs::read_to_string(base.join("tokei.toml"))
|
||||
.ok()
|
||||
|
||||
Reference in New Issue
Block a user