Skip to content

Commit f66b520

Browse files
docs: fix gh page doc typo (#504)
1 parent 6d472fd commit f66b520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/amplitude-client.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ AmplitudeClient.prototype.setDeviceId = function setDeviceId(deviceId) {
11001100
* on an end-of-lifecycle event handler such as `onpagehide` or `onvisibilitychange`
11011101
* @public
11021102
* @param {string} transport - transport mechanism to use for events. Must be one of `http` or `beacon`.
1103-
* @example amplitudeClient.setDeviceId('45f0954f-eb79-4463-ac8a-233a6f45a8f0');
1103+
* @example amplitudeClient.setTransport('beacon');
11041104
*/
11051105
AmplitudeClient.prototype.setTransport = function setTransport(transport) {
11061106
if (this._shouldDeferCall()) {
@@ -1528,7 +1528,7 @@ AmplitudeClient.prototype.logEvent = function logEvent(
15281528
* fails. The failure can be from the request being malformed or from a network failure
15291529
* Note: the server response code and response body from the event upload are passed to the callback function.
15301530
* @param {boolean} outOfSession - (optional) if out of the sessioin or not
1531-
* @example amplitudeClient.logEvent('Clicked Homepage Button', {'finished_flow': false, 'clicks': 15});
1531+
* @example amplitudeClient.logEventWithTimestamp('Clicked Homepage Button', {'finished_flow': false, 'clicks': 15}, Date.now());
15321532
*/
15331533
AmplitudeClient.prototype.logEventWithTimestamp = function logEvent(
15341534
eventType,
@@ -2154,7 +2154,7 @@ AmplitudeClient.prototype.setUseDynamicConfig = function setUseDynamicConfig(use
21542154
* @public
21552155
* @param {string} serverZone - the server zone value. AmplitudeServerZone.US or AmplitudeServerZone.EU.
21562156
* @param {bool} serverZoneBasedApi - (optional) update api endpoint with serverZone change or not. For data residency, recommend to enable it unless using own proxy server.
2157-
* @example amplitudeClient.setServerZone('joe@gmail.com', true);
2157+
* @example amplitudeClient.setServerZone(AmplitudeServerZone.EU, true);
21582158
*/
21592159
AmplitudeClient.prototype.setServerZone = function setServerZone(serverZone, serverZoneBasedApi = true) {
21602160
if (

0 commit comments

Comments
 (0)