Skip to content

Commit

Permalink
more comments addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalerba committed Oct 12, 2017
1 parent 8e3feca commit 84fc26d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/core/datetime/date-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export abstract class DateAdapter<D> {
abstract today(): D;

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

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

0 comments on commit 84fc26d

Please sign in to comment.