Skip to content

Commit

Permalink
Merge pull request #3119 from hypothesis/jsdoc-param-ref-syntax
Browse files Browse the repository at this point in the history
Replace '@p <ident>' with `ident` in JSDoc comments
  • Loading branch information
nickstenning committed Mar 21, 2016
2 parents 704d5a8 + fb03419 commit 7f76a20
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion h/browser/chrome/lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function AlreadyInjectedError(message) {
AlreadyInjectedError.prototype = Object.create(ExtensionError.prototype);

/**
* Returns true if @p err is a recognized 'expected' error.
* Returns true if `err` is a recognized 'expected' error.
*/
function isKnownError(err) {
return err instanceof ExtensionError;
Expand Down
2 changes: 1 addition & 1 deletion h/browser/chrome/lib/sidebar-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function SidebarInjector(chromeTabs, dependencies) {
}

/**
* Inject the script from the source file at @p path into the
* Inject the script from the source file at `path` into the
* page currently loaded in the tab at the given ID.
*/
function injectScript(tabId, path) {
Expand Down
2 changes: 1 addition & 1 deletion h/static/scripts/markdown-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var LinkType = {
* @param {EditorState} state - The state of the input field.
* @param {number} pos - The start position of the text to remove.
* @param {number} length - The number of characters to remove.
* @param {string} text - The replacement text to insert at @p pos.
* @param {string} text - The replacement text to insert at `pos`.
* @return {EditorState} - The new state of the input field.
*/
function replaceText(state, pos, length, text) {
Expand Down
2 changes: 1 addition & 1 deletion h/static/scripts/raven.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function convertLocalURLsToFilenames(url) {
}

/**
* Return a transformed version of @p data with local URLs replaced
* Return a transformed version of `data` with local URLs replaced
* with filenames.
*
* In environments where the client is served from a local URL,
Expand Down
2 changes: 1 addition & 1 deletion h/static/scripts/widget-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module.exports = function WidgetController(
}

/**
* Load annotations for all URLs associated with @p frames.
* Load annotations for all URLs associated with `frames`.
*
* @param {Array<{uri:string}>} frames - Hypothesis client frames
* to load annotations for.
Expand Down
2 changes: 1 addition & 1 deletion scripts/gulp/upload-to-sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function uploadReleaseFile(opts, project, release, file) {
* Upload a stream of Vinyl files as a Sentry release.
*
* This creates a new release in Sentry using the organization, project
* and release settings in @p opts and uploads the input stream of Vinyl
* and release settings in `opts` and uploads the input stream of Vinyl
* files as artefacts for the release.
*
* @param {SentryOptions} opts
Expand Down

0 comments on commit 7f76a20

Please sign in to comment.