Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Commit 22605e2

Browse files
authored
Merge pull request #297 from eeemmmmmm/fix/fn-env-comment
fix: correct doc comment for get_type_info return type
2 parents e9c1a5f + 00bc0a5 commit 22605e2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/type_checker/fn_env.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ impl TypedFnEnv {
192192
}
193193

194194
/// Retrieves type information on a variable, given a name.
195-
/// If the variable is not in scope, return false.
196-
// TODO: return an error no?
195+
/// If the variable is not in scope, return `None`.
197196
pub fn get_type_info(&self, ident: &str) -> Result<Option<&TypeInfo>> {
198197
if let Some((scope, type_info)) = self.vars.get(ident) {
199198
if self.is_forbidden(*scope, type_info.clone()) {

0 commit comments

Comments
 (0)