Update get_config documentation

This commit is contained in:
XAMPPRocky
2020-06-02 13:12:57 +02:00
committed by GitHub
parent 21fc3e65a3
commit 8e37ba8e64
+4 -3
View File
@@ -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()