From 8e3f3f16b5bc90520ef569c36ecb7caf00b8453e Mon Sep 17 00:00:00 2001 From: Don Turner Date: Wed, 8 Feb 2023 21:00:10 +0000 Subject: [PATCH] Apply suggestions from code review --- docs/ArchitectureLearningJourney.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ArchitectureLearningJourney.md b/docs/ArchitectureLearningJourney.md index 741c5c424..9d7c77e1c 100644 --- a/docs/ArchitectureLearningJourney.md +++ b/docs/ArchitectureLearningJourney.md @@ -192,9 +192,9 @@ Whenever the list of topics changes (for example, when a new topic is added), th To write data, the repository provides suspend functions. It is up to the caller to ensure that their execution is suitably scoped. -_Example: Follow a set of topics_ +_Example: Follow a topic_ -Simply call `UserDataRepository.setFollowedTopicIds` with the set of IDs of the topics the user wishes to follow. +Simply call `UserDataRepository.toggleFollowedTopicId` with the ID of the topic the user wishes to follow and `followed=true` to indicate that the topic should be followed (use `false` to unfollow a topic). ### Data sources