Skip to content

Commit

Permalink
Update cedar-policy-core/src/parser/cst_to_ast.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Craig Disselkoen <craigdissel@gmail.com>
  • Loading branch information
eidelmanjonathan and cdisselkoen authored Feb 14, 2025
1 parent 7b59cc0 commit 8e9e5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cedar-policy-core/src/parser/cst_to_ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl Node<Option<cst::Policy>> {
self.to_policy_or_template_helper(id, false)
}

/// Convert `cst::Policy` to an AST `InlinePolicy`. (Will fail if the CST is for a template)
/// Convert `cst::Policy` to an AST `StaticPolicy`. (Will fail if the CST is for a template)
pub fn to_policy(&self, id: ast::PolicyID) -> Result<ast::StaticPolicy> {
self.to_policy_helper(id, false)
}
Expand Down

0 comments on commit 8e9e5fb

Please sign in to comment.