From d5c7aec3cb7c90d026cfa9bfb2c75ed2ad3ee15f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 3 Aug 2020 09:17:54 -0700 Subject: [PATCH] doc: use _can_ to describe actions in quic.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per Microsoft style guide: > When ability is what you need to express, it's OK to use _can_ to > describe actions or tasks that the reader or program is able to do. > Use _might_ to express possibility. Don't use _may_, which might be > interpreted as providing permission. Refs: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/c/can-may Refs: https://github.com/nodejs/node/pull/34353#issuecomment-659169228 PR-URL: https://github.com/nodejs/node/pull/34613 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Gerhard Stöbich --- doc/api/quic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/quic.md b/doc/api/quic.md index c0df4758d8bb6c..6969a43ec9f716 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1388,7 +1388,7 @@ server.listen(); The `'session'` event will be emitted multiple times. -The `'session'` event handler *may* be an async function. +The `'session'` event handler can be an async function. If the `'session'` event handler throws an error, or if it returns a `Promise` that is rejected, the error will be handled by destroying the `QuicServerSession`