Skip to content

Commit

Permalink
Tweaked example code in the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydenseric committed Mar 14, 2022
1 parent 2ce44e5 commit ad1eb34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Fixed relative URLs to project files in the readme.
- Corrected an example shell script in the readme.
- Tweaked example code in the readme.
- Removed a redundant image from the `.github` directory.

## 1.0.0
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ A Ruck project contains:
}

/**
* Handles a dynamic import error for a styled route.
* Catches a dynamic import error for route content with CSS.
* @param {Error} cause Import error.
* @returns {import("ruck/routeDetailsForContentWithCss.mjs").RouteContentWithCss}
*/
function catchImportContentWithCss(cause) {
console.error(new Error("Styled route import rejection.", { cause }));
console.error(new Error("Import rejection for route with CSS.", { cause }));

return {
content: h(PageError, {
Expand Down

0 comments on commit ad1eb34

Please sign in to comment.