Skip to content

Commit

Permalink
Merge pull request #554 from xehpuk/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 authored Jan 6, 2024
2 parents ab04e98 + 3784be9 commit 1da1724
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ interface ICalEventInternalRepeatingData {


/**
* Usually you get an `ICalCalendar` object like this:
* Usually you get an `ICalEvent` object like this:
* ```javascript
* import ical from 'ical-generator';
* const calendar = ical();
Expand Down Expand Up @@ -986,15 +986,15 @@ export default class ICalEvent {


/**
* Creates a new [[`ICalCategory`]] and returns it. Use options to prefill the categories' attributes.
* Creates a new [[`ICalCategory`]] and returns it. Use options to prefill the category's attributes.
* Calling this method without options will create an empty category.
*
* ```javascript
* const cal = ical();
* const event = cal.createEvent();
* const category = event.createCategory({name: 'APPOINTMENT'});
*
* // add another alarm
* // add another category
* event.createCategory({
* name: 'MEETING'
* });
Expand Down

0 comments on commit 1da1724

Please sign in to comment.