diff options
| author | bors <bors@rust-lang.org> | 2014-01-08 07:26:41 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-08 07:26:41 -0800 |
| commit | 464d1d044eebace50d17c10731493d6898490876 (patch) | |
| tree | 886787e27d87335fc126fcfb4becedea1b0b5d4d /src/libextra | |
| parent | fda71f26301d153ca8d9489281d382af79792d63 (diff) | |
| parent | 9dc44c7d861de4db93620589507e3ce935677392 (diff) | |
| download | rust-464d1d044eebace50d17c10731493d6898490876.tar.gz rust-464d1d044eebace50d17c10731493d6898490876.zip | |
auto merge of #11405 : huonw/rust/moredocs, r=huonw
Various documentation changes, change the 'borrowed pointer' terminology to 'reference', fix a problem with 'make dist' on windows.
Diffstat (limited to 'src/libextra')
| -rw-r--r-- | src/libextra/future.rs | 4 | ||||
| -rw-r--r-- | src/libextra/sync.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libextra/future.rs b/src/libextra/future.rs index cb82c1abe1e..c6c876aff79 100644 --- a/src/libextra/future.rs +++ b/src/libextra/future.rs @@ -60,8 +60,8 @@ impl<A> Future<A> { pub fn get_ref<'a>(&'a mut self) -> &'a A { /*! - * Executes the future's closure and then returns a borrowed - * pointer to the result. The borrowed pointer lasts as long as + * Executes the future's closure and then returns a reference + * to the result. The reference lasts as long as * the future. */ match self.state { diff --git a/src/libextra/sync.rs b/src/libextra/sync.rs index 988a642e583..12566ac8551 100644 --- a/src/libextra/sync.rs +++ b/src/libextra/sync.rs @@ -431,7 +431,7 @@ struct RWLockInner { // (or reader/downgrader) race. // By the way, if we didn't care about the assert in the read unlock path, // we could instead store the mode flag in write_downgrade's stack frame, - // and have the downgrade tokens store a borrowed pointer to it. + // and have the downgrade tokens store a reference to it. read_mode: bool, // The only way the count flag is ever accessed is with xadd. Since it is // a read-modify-write operation, multiple xadds on different cores will |
