Skip to content

Commit

Permalink
Fix some minor typo in the diff object documentation
Browse files Browse the repository at this point in the history
I noticed a few mistakes while reading the API documentation, and I
couldn't resist to fix them.
  • Loading branch information
Brice Figureau committed Jun 6, 2018
1 parent ba6f0ed commit 4aa1a8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/dev/api/v1/objects/diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ Returns the value of the resource from the new catalog.
}
}
# Demonstrates structure and old_value
# Demonstrates structure and new_value
diff.structure #=> ['parameters', 'content']
diff.old_value #=> 'This is the NEW FILE!!!!!'
diff.new_value #=> 'This is the NEW FILE!!!!!'
```

#### `#old_file` (String)
Expand All @@ -107,7 +107,7 @@ Note that this is a pass-through of information provided in the Puppet catalog,

Note also that if the diff represents addition of a resource, this will return `nil`, because the resource does not exist in the old catalog.

#### `#old_file` (String)
#### `#old_line` (String)

Returns the line number within the Puppet manifest giving rise to the resource as it exists in the old catalog. (See `#old_file` for the filename of the Puppet manifest.)

Expand Down

0 comments on commit 4aa1a8f

Please sign in to comment.