Skip to content

Commit

Permalink
格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
h7lin committed Apr 23, 2017
1 parent afc7fc4 commit c83c94a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dgram/change_to_asynchronous_socket_bind_behavior.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
As of Node.js v0.10, [`dgram.Socket#bind()`][] changed to an asynchronous
execution model. Legacy code that assumes synchronous behavior, as in the

As of Node.js v0.10, [`dgram.Socket#bind()`][] changed to an asynchronous
execution model. Legacy code that assumes synchronous behavior, as in the
following example:

```js
Expand All @@ -8,7 +9,7 @@ s.bind(1234);
s.addMembership('224.0.0.114');
```

Must be changed to pass a callback function to the [`dgram.Socket#bind()`][]
Must be changed to pass a callback function to the [`dgram.Socket#bind()`][]
function:

```js
Expand All @@ -18,5 +19,3 @@ s.bind(1234, () => {
});
```



0 comments on commit c83c94a

Please sign in to comment.