Skip to content

Commit e2552c9

Browse files
committed
Fix document
1 parent 35574f7 commit e2552c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use OFile::parse to read the mach-o file from a &[u8] slice.
88
```rust
99
use std::io::{Read, Cursor};
1010
use std::fs::File;
11-
use macho::{OFile, CPU_TYPE_X86_64, MachCommand, LoadCommand};
11+
use mach_object::{OFile, CPU_TYPE_X86_64, MachCommand, LoadCommand};
1212

1313
let mut f = File::open("test/helloworld").unwrap();
1414
let mut buf = Vec::new();
@@ -32,4 +32,4 @@ if let OFile::MachFile { ref header, ref commands } = OFile::parse(&mut cur).unw
3232
For more detail, please check the unit tests and the [otool](examples/otool.rs) example.
3333

3434
## Document
35-
[API Reference](http://flier.github.io/rust-macho/doc/macho/index.html)
35+
[API Reference](http://flier.github.io/rust-macho/doc/mach_object/index.html)

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
//! if let &LoadCommand::Segment64 { ref segname, ref sections, .. } = cmd {
1919
//! println!("segment: {}", segname);
2020
//!
21-
//! for ref sect in sections {
22-
//! println!(" section: {}", sect.sectname);
21+
//! for ref sect in sections {
22+
//! println!(" section: {}", sect.sectname);
2323
//! }
2424
//! }
2525
//! }

0 commit comments

Comments
 (0)