rl_lang/docs/entries/stdlib/rl/source_name.rs
1use crate::docs::entry::FnEntry;
2
3pub static SOURCE_NAME: FnEntry = FnEntry {
4 signature: "source_name()",
5 description: "returns the name of the file currently being run, or null if there is no source file (e.g. running in the REPL)",
6 example: "get std::rl::source_name\n\nsource_name() // \"main.rl\"",
7 expected_output: None,
8 returns: "string | null",
9 errors: None,
10 see_also: &[],
11 since: None,
12};