Skip to content

Commit

Permalink
Merge pull request #36 from jimmyhmiller/patch-1
Browse files Browse the repository at this point in the history
Fixed small syntax issues
  • Loading branch information
frankmcsherry committed Jul 13, 2018
2 parents 41ce4c2 + 0141f83 commit 06a5ecd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions posts/2018-05-19.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ In the interest of completeness, we will have one more method for the `Relation`
impl<Tuple: Ord> Relation<Tuple> {
/// Merges two relations into their union.
pub fn merge(self, other: Self) -> Self {
let mut elements = Vec::with_capacity(elements1.len() + elements2.len());
let mut elements = Vec::with_capacity(self.elements.len() + other.elements.len());
elements.extend(self.elements.into_iter());
elements.extend(other.elements.into_iter());
elements.into()
Expand All @@ -89,7 +89,7 @@ pub struct Variable<Tuple: Ord> {
/// A list of already processed tuples.
stable: Vec<Relation<Tuple>>,
/// A list of recently added but unprocessed tuples.
recent: Relation<Tuple>>,
recent: Relation<Tuple>,
/// A list of tuples yet to be introduced.
to_add: Vec<Relation<Tuple>>,
}
Expand Down Expand Up @@ -149,7 +149,7 @@ To march through the relations, we will recast them as "slices", which is how Ru
```rust
// represent the relations as slices.
let mut slice1 = &input1.elements[..];
let mut slice2 = &input2.elements[..]
let mut slice2 = &input2.elements[..];

while !slice1.is_empty() && !slice2.is_empty() {

Expand Down

0 comments on commit 06a5ecd

Please sign in to comment.