Skip to content

Commit a31aec4

Browse files
committed
more comments addressed
1 parent 468a0ab commit a31aec4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/core/datetime/date-adapter.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export abstract class DateAdapter<D> {
118118
abstract today(): D;
119119

120120
/**
121-
* Parses a date from a user-inputted value.
121+
* Parses a date from a user-provided value.
122122
* @param value The value to parse.
123123
* @param parseFormat The expected format of the value being parsed
124124
* (type is implementation-dependent).
@@ -188,12 +188,12 @@ export abstract class DateAdapter<D> {
188188

189189
/**
190190
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
191-
* deserialize should only accept non-ambiguous, locale-independent values (e.g. a ISO 8601
191+
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
192192
* string). The default implementation does not allow any deserialization, it simply checks that
193193
* the given value is already a valid date object or null. The `<mat-datepicker>` will call this
194194
* method on all of it's `@Input()` properties that accept dates. It is therefore possible to
195-
* support passing your wire format directly to these properties by overriding this method to
196-
* also deserialize your wire format.
195+
* support passing values from your backend directly to these properties by overriding this method
196+
* to also deserialize the format used by your backend.
197197
* @param value The value to be deserialized into a date object.
198198
* @returns The deserialized date object, either a valid date, null if the value can be
199199
* deserialized into a null date (e.g. the empty string).

0 commit comments

Comments
 (0)