Skip to content

Commit

Permalink
add trailing period
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornregnell committed Jun 11, 2024
1 parent 9419136 commit 98bbb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/introprog/Image.scala
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package introprog

/** Companion object to create Image instances */
/** Companion object to create Image instances. */
object Image:
import java.awt.image.BufferedImage
/** Create new empty Image with specified dimensions `(width, height)`*/
Expand All @@ -23,7 +23,7 @@ class Image (val underlying: java.awt.image.BufferedImage):
for x <- 0 until width; y <- 0 until height do
update(x, y, f(x, y))

/** Set color of pixels by passing `f(x, y)` and return self*/
/** Set color of pixels by passing `f(x, y)` and return self. */
def updated(f: (Int, Int) => Color): Image =
for x <- 0 until width; y <- 0 until height do
update(x, y, f(x, y))
Expand Down

0 comments on commit 98bbb18

Please sign in to comment.