Skip to content

Commit

Permalink
Update README and template files with correct syntax for example code (
Browse files Browse the repository at this point in the history
…#4)

* docs: update README with correct syntax

* fix: missing double quote escaping

---------

Co-authored-by: Lee Myring <[email protected]>
  • Loading branch information
leezero-carbon and leezero-carbon authored Jul 31, 2024
1 parent d750d3b commit 3387a3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ data "cedar_policyset" "example" {
text = "resource.is_public"
}
unless {
text = "resource.owner == User::"alice"
text = "resource.owner == User::\"alice\""
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data "cedar_policyset" "example" {
text = "resource.is_public"
}
unless {
text = "resource.owner == User::"alice"
text = "resource.owner == User::\"alice\""
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion templates/index.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data "cedar_policyset" "example" {
text = "resource.is_public"
}
unless {
text = "resource.owner == User::"alice"
text = "resource.owner == User::\"alice\""
}
}
}
Expand Down

0 comments on commit 3387a3f

Please sign in to comment.