Skip to content

Commit fa50f63

Browse files
authored
Update CHANGELOG.md
1 parent 4a4cfc0 commit fa50f63

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1010
([#1109](https://github.com/nix-rust/nix/pull/1109))
1111

1212
```rust
13-
use nix::fcntl::{readlink, readlinkat};
14-
13+
# use nix::fcntl::{readlink, readlinkat};
1514
// the buffer argument of `readlink` and `readlinkat` has been removed,
1615
// and the return value is now an owned type (`OsString`).
1716
// Existing code can be updated by removing the buffer argument
1817
// and removing any clone or similar operation on the output
1918

2019
// old code `readlink(&path, &mut buf)` can be replaced with the following
21-
readlink(&path); // this returns OsString
20+
let _: OsString = readlink(&path);
2221

2322
// old code `readlinkat(dirfd, &path, &mut buf)` can be replaced with the following
24-
readlinkat(dirfd, &path); // this returns OsString
23+
let _: OsString = readlinkat(dirfd, &path);
2524
```
2625

2726
### Fixed

0 commit comments

Comments
 (0)